mirror of
https://github.com/moparisthebest/curl
synced 2024-11-18 07:25:14 -05:00
143 lines
6.8 KiB
Plaintext
143 lines
6.8 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"
|
|
1.commonName = "6. Common Name (eg, FQDN) "
|
|
1.commonName_value = "localhost"
|
|
[something]
|
|
-----BEGIN RSA PRIVATE KEY-----
|
|
MIIC1AIBAAKBmwNZN+oG6vJ8DAze+FvOKSS49X4xGMxALhKRLhQQb7qvM+7BcMgR
|
|
v+RKxkX7SNgcxKPLcIHf7QQ6DBIlLXuAuVHQtWW9b06q64kBElkEwh6gP5Ia9JrR
|
|
ysGbu2U6NRP+xBU33dVwZjF07ocN9Pp392W4VxEc+g3+FkRzUEaahDGOabmjgKuq
|
|
DdlKdZLzgJj7+9sEKpb7+FdG56rZAgMBAAECgZsCkK1Z1XTUz5x3m7PMuHEiVaKS
|
|
yk/B4ISq6pbO/gxpieARzhR038wNug6L+8VA8UDebXHBvGYYr9Mhb2OZUfIlr+nW
|
|
h7kmHZ+T88M3eH/hQc3jtnvnu1dGmMlIXjTLQOrKgrAn6fYaw2HAGPdGKjpatAy/
|
|
3vRjguv/22pNJLRQmMHdozJdc8mEYY+AhqrQxXCWQT/1peZzlq/IAQJOAfhE2YWf
|
|
qB9iYNmuhxJ1PolPW4I63atXuoavqadbaRoaLm/pqLVB1QjMeyak8O/0TmO6CXk6
|
|
878ps85fLFgARRjSYX+rYwoYNzqxK3cBAk4Bsy4oofReVT8xB+7rFZFMV4McyL7e
|
|
sOABFqecLuNIGT6CdeEU1z7TUfq8sKM1MQ25e0J1PMmoWTqDwzhnxK+ckeFsZ8Te
|
|
dgqVW+Oyy9kCTgHqyc/P/uEZkp1ioDu0WkpAR+1vZa2jeyH+vm9nhE9Z6Uty/r6F
|
|
k4otIx9lMDmTwXqeE03vINJlJshqvjShfbnCe9gK8xrUk1cFl7QPAQJOATD3LQRq
|
|
At2MniioFtiTbUN6n2ZS1C5xnHGq3fnBzxnZw4UmSfuZjG/L3gWPKkyJCK3HYe9K
|
|
ho6ZQhNB6P5d7sQQjG6f+SIRwp+VjwvpAk4AnM4do54FETeLHhY4zy47dM/zdy3u
|
|
iDjiFwoMTR+PfF03evsWe5pW3EaXolGi3FRAZ/idFA+L3Gi2y4xR44z71HkbF32L
|
|
WKaLdOuBQvI=
|
|
-----END RSA PRIVATE KEY-----
|
|
Certificate:
|
|
Data:
|
|
Version: 3 (0x2)
|
|
Serial Number:
|
|
09:c2:f9:ca:9a:d8
|
|
Signature Algorithm: md5WithRSAEncryption
|
|
Issuer: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
|
|
Validity
|
|
Not Before: Jan 5 11:25:13 2004 GMT
|
|
Not After : Feb 13 11:25:13 2008 GMT
|
|
Subject: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
|
|
Subject Public Key Info:
|
|
Public Key Algorithm: rsaEncryption
|
|
RSA Public Key: (1234 bit)
|
|
Modulus (1234 bit):
|
|
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: md5WithRSAEncryption
|
|
02:47:57:18:5f:54:3f:1d:29:0a:05:7a:d1:0f:e6:b9:2c:8b:
|
|
29:38:50:bf:c1:a1:7f:73:4a:9d:f1:1b:bf:2e:ea:87:91:dd:
|
|
ff:75:73:57:78:cf:75:52:57:0b:5b:bb:d4:77:b2:dd:e8:0c:
|
|
06:ce:1b:c0:3d:9f:68:c0:0b:66:b8:f9:46:db:04:a9:2f:a3:
|
|
5e:9c:c6:70:ff:1d:af:1f:17:9c:38:3d:12:aa:af:7b:72:44:
|
|
a0:44:41:6b:9a:9b:60:8c:50:94:f1:d7:a5:77:6b:d3:0e:66:
|
|
88:a1:52:63:23:f6:66:a6:ea:f9:d0:df:4d:8a:14:f0:73:c6:
|
|
b6:b6:b6:68:4f:3d:9a:b6:31:ba:19:f3:66:9f:16:6d:87:64:
|
|
32:53:d2:90:e5:8c:1e:f5:18:61:1a
|
|
-----BEGIN CERTIFICATE-----
|
|
MIIDujCCAwigAwIBAgIGCcMA3QkhMA0GCSqGSIb3DQEBBAUAMHIxCzAJBgNVBAYT
|
|
AlNFMQ4wDAYDVQQIEwVTb2xuYTENMAsGA1UEBxMETW9vbzENMAsGA1UEChMESGF4
|
|
eDEOMAwGA1UECxMFQ29vbHgxETAPBgNVBAMTCHN0b3Jicm9yMRIwEAYDVQQDEwls
|
|
b2NhbGhvc3QwHhcNMDQwMTA1MTQ0MjU2WhcNMDgwMjEzMTQ0MjU2WjByMQswCQYD
|
|
VQQGEwJTRTEOMAwGA1UECBMFU29sbmExDTALBgNVBAcTBE1vb28xDTALBgNVBAoT
|
|
BEhheHgxDjAMBgNVBAsTBUNvb2x4MREwDwYDVQQDEwhzdG9yYnJvcjESMBAGA1UE
|
|
AxMJbG9jYWxob3N0MIG5MA0GCSqGSIb3DQEBAQUAA4GnADCBowKBmwNZN+oG6vJ8
|
|
DAze+FvOKSS49X4xGMxALhKRLhQQb7qvM+7BcMgRv+RKxkX7SNgcxKPLcIHf7QQ6
|
|
DB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