mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
b5486adc9b
The previous test certificate contained a MD5 hash which is not supported using TLSv1.2 with Schannel on Windows 7 or newer. See the update to this blog post on IEInternals / MSDN: http://blogs.msdn.com/b/ieinternals/archive/2011/03/25/ misbehaving-https-servers-impair-tls-1.1-and-tls-1.2.aspx "Update: If the server negotiates a TLS1.2 connection with a Windows 7 or 8 schannel.dll-using client application, and it provides a certificate chain which uses the (weak) MD5 hash algorithm, the client will abort the connection (TCP/IP FIN) upon receipt of the certificate."
144 lines
6.9 KiB
Plaintext
144 lines
6.9 KiB
Plaintext
#
|
|
# This file contains a private key and a certificate used for stunnel.
|
|
# The certificate contains a number of extensions essentially being
|
|
# used in the 509 test. The certificate has been generated using
|
|
# openssl with the parameters listed below up to the line
|
|
# contain [something], after that you find the result.
|
|
#
|
|
#
|
|
extensions = x509v3
|
|
[ x509v3 ]
|
|
subjectAltName = DNS:localhost
|
|
nsCertType = server
|
|
nsComment = "CURL stunnel server test certificate"
|
|
keyUsage = digitalSignature,keyEncipherment
|
|
extendedKeyUsage = serverAuth
|
|
basicConstraints = CA:false
|
|
subjectKeyIdentifier = hash
|
|
subjectInfoAccess = AD_DVCS;URI:"https://localhost:8433/509"
|
|
authorityInfoAccess = AD_DVCS;URI:"https://localhost:8433/509"
|
|
[ req ]
|
|
default_bits = 1234
|
|
distinguished_name = req_DN
|
|
default_md = sha1
|
|
string_mask = pkix
|
|
[ req_DN ]
|
|
countryName = "1. Country Name (2 letter code)"
|
|
countryName_value = SE
|
|
stateOrProvinceName = "2. State or Province Name (full name) "
|
|
stateOrProvinceName_value = Solna
|
|
localityName = "3. Locality Name (eg, city) "
|
|
localityName_value = Mooo
|
|
0.organizationName = "4. Organization Name (eg, company) "
|
|
0.organizationName_value = Haxx
|
|
organizationalUnitName = "5. Organizational Unit Name (eg, section) "
|
|
organizationalUnitName_value = Coolx
|
|
commonName = "6. Common Name (eg, FQDN) "
|
|
commonName_value = "storbror"
|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evsWe5pW3EaXolGi3FRAZ/idFA+L3Gi2y4xR44z71HkbF32L
|
|
WKaLdOuBQvI=
|
|
-----END RSA PRIVATE KEY-----
|
|
Certificate:
|
|
Data:
|
|
Version: 3 (0x2)
|
|
Serial Number:
|
|
a4:17:70:09:88:8c:48:cd
|
|
Signature Algorithm: sha1WithRSAEncryption
|
|
Issuer: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
|
|
Validity
|
|
Not Before: Feb 22 15:38:48 2014 GMT
|
|
Not After : Feb 20 15:38:48 2024 GMT
|
|
Subject: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
|
|
Subject Public Key Info:
|
|
Public Key Algorithm: rsaEncryption
|
|
Public-Key: (1234 bit)
|
|
Modulus:
|
|
03:59:37:ea:06:ea:f2:7c:0c:0c:de:f8:5b:ce:29:
|
|
24:b8:f5:7e:31:18:cc:40:2e:12:91:2e:14:10:6f:
|
|
ba:af:33:ee:c1:70:c8:11:bf:e4:4a:c6:45:fb:48:
|
|
d8:1c:c4:a3:cb:70:81:df:ed:04:3a:0c:12:25:2d:
|
|
7b:80:b9:51:d0:b5:65:bd:6f:4e:aa:eb:89:01:12:
|
|
59:04:c2:1e:a0:3f:92:1a:f4:9a:d1:ca:c1:9b:bb:
|
|
65:3a:35:13:fe:c4:15:37:dd:d5:70:66:31:74:ee:
|
|
87:0d:f4:fa:77:f7:65:b8:57:11:1c:fa:0d:fe:16:
|
|
44:73:50:46:9a:84:31:8e:69:b9:a3:80:ab:aa:0d:
|
|
d9:4a:75:92:f3:80:98:fb:fb:db:04:2a:96:fb:f8:
|
|
57:46:e7:aa:d9
|
|
Exponent: 65537 (0x10001)
|
|
X509v3 extensions:
|
|
X509v3 Subject Alternative Name:
|
|
DNS:localhost
|
|
Netscape Cert Type:
|
|
SSL Server
|
|
Netscape Comment:
|
|
CURL stunnel server test certificate
|
|
X509v3 Key Usage:
|
|
Digital Signature, Key Encipherment
|
|
X509v3 Extended Key Usage:
|
|
TLS Web Server Authentication
|
|
X509v3 Basic Constraints:
|
|
CA:FALSE
|
|
X509v3 Subject Key Identifier:
|
|
35:77:35:3B:9B:98:3C:B6:C7:9A:E7:A8:04:B9:7C:70:AD:FA:37:A9
|
|
Subject Information Access:
|
|
ad dvcs - URI:https://localhost:8433/509
|
|
|
|
Authority Information Access:
|
|
ad dvcs - URI:https://localhost:8433/509
|
|
|
|
Signature Algorithm: sha1WithRSAEncryption
|
|
00:45:db:09:5b:08:5b:1a:ff:71:50:6c:12:ad:8e:78:32:1d:
|
|
7d:e7:e4:d3:3e:5f:ca:20:84:aa:ff:9a:c2:b6:a9:48:93:1f:
|
|
73:27:d1:68:05:76:36:f9:c1:53:90:ad:8a:c0:b3:12:c8:11:
|
|
5c:2c:65:01:ac:31:d1:8e:60:6e:c6:f5:ba:9d:69:e8:f1:ac:
|
|
4a:de:52:94:cd:06:24:45:72:64:89:0f:57:8b:26:2b:16:cf:
|
|
0b:27:c4:e8:73:c7:d3:e5:42:38:95:57:b5:bb:83:b4:92:d4:
|
|
e0:cd:fb:c8:f5:d2:da:1d:11:fe:3c:18:20:8b:bd:22:31:1c:
|
|
5a:82:d4:f5:71:8d:8a:e3:13:82:c5:2d:f3:9f:d0:b7:b8:4b:
|
|
d2:46:9d:8e:1a:d7:99:6e:c1:b9:a0
|
|
-----BEGIN CERTIFICATE-----
|
|
MIIDtzCCAwWgAwIBAgIJAKQXcAmIjEjNMA0GCSqGSIb3DQEBBQUAMHIxCzAJBgNV
|
|
BAYTAlNFMQ4wDAYDVQQIEwVTb2xuYTENMAsGA1UEBxMETW9vbzENMAsGA1UEChME
|
|
SGF4eDEOMAwGA1UECxMFQ29vbHgxETAPBgNVBAMTCHN0b3Jicm9yMRIwEAYDVQQD
|
|
Ewlsb2NhbGhvc3QwHhcNMTQwMjIyMTUzODQ4WhcNMjQwMjIwMTUzODQ4WjByMQsw
|
|
CQYDVQQGEwJTRTEOMAwGA1UECB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