An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
f63228 1
CS 2 # HG changeset patch
3 # User Benjamin Peterson <benjamin@python.org>
4 # Date 1427947446 14400
5 # Node ID 4f2391e866434a94ca6d87dff5ea01fcab91d08a
6 # Parent  5d88f653187203d85f4cfd4877f093af3919035b
7 replace 512 bit dh key with a 2014 bit one (closes #23844)
8
9 Patch by C├ędric Krier.
10
11 diff --git a/Lib/test/dh1024.pem b/Lib/test/dh1024.pem
12 new file mode 100644
13 --- /dev/null
14 +++ b/Lib/test/dh1024.pem
15 @@ -0,0 +1,7 @@
16 +-----BEGIN DH PARAMETERS-----
17 +MIGHAoGBAIbzw1s9CT8SV5yv6L7esdAdZYZjPi3qWFs61CYTFFQnf2s/d09NYaJt
18 +rrvJhIzWavqnue71qXCf83/J3nz3FEwUU/L0mGyheVbsSHiI64wUo3u50wK5Igo0
19 +RNs/LD0irs7m0icZ//hijafTU+JOBiuA8zMI+oZfU7BGuc9XrUprAgEC
20 +-----END DH PARAMETERS-----
21 +
22 +Generated with: openssl dhparam -out dh1024.pem  1024
23 diff --git a/Lib/test/dh512.pem b/Lib/test/dh512.pem
24 deleted file mode 100644
25 --- a/Lib/test/dh512.pem
26 +++ /dev/null
27 @@ -1,9 +0,0 @@
28 ------BEGIN DH PARAMETERS-----
29 -MEYCQQD1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWak
30 -XUGfnHy9iUsiGSa6q6Jew1XpKgVfAgEC
31 ------END DH PARAMETERS-----
32 -
33 -These are the 512 bit DH parameters from "Assigned Number for SKIP Protocols"
34 -(http://www.skip-vpn.org/spec/numbers.html).
35 -See there for how they were generated.
36 -Note that g is not a generator, but this is not a problem since p is a safe prime.
37 diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
38 --- a/Lib/test/test_ssl.py
39 +++ b/Lib/test/test_ssl.py
40 @@ -66,7 +66,7 @@ BADKEY = data_file("badkey.pem")
41  NOKIACERT = data_file("nokia.pem")
42  NULLBYTECERT = data_file("nullbytecert.pem")
43  
44 -DHFILE = data_file("dh512.pem")
45 +DHFILE = data_file("dh1024.pem")
46  BYTES_DHFILE = DHFILE.encode(sys.getfilesystemencoding())
47  
48  
49