blob: d9b9679ebb6d160df14fab22497e6083ded83690 [file] [log] [blame]
Lucas Eckels9bd90e62012-08-06 15:07:02 -07001#
2# This file contains a private key and a certificate used for stunnel.
3# The certificate contains a number of extensions essentially being
4# used in the 509 test. The certificate has been generated using
5# openssl with the parameters listed below up to the line
6# contain [something], after that you find the result.
7#
8#
9extensions = x509v3
10[ x509v3 ]
11subjectAltName = DNS:localhost
12nsCertType = server
13nsComment = "CURL stunnel server test certificate"
14keyUsage = digitalSignature,keyEncipherment
15extendedKeyUsage = serverAuth
16basicConstraints = CA:false
17subjectKeyIdentifier = hash
18subjectInfoAccess = AD_DVCS;URI:"https://localhost:8433/509"
19authorityInfoAccess = AD_DVCS;URI:"https://localhost:8433/509"
20[ req ]
21default_bits = 1234
22distinguished_name = req_DN
23default_md = sha1
24string_mask = pkix
25[ req_DN ]
26countryName = "1. Country Name (2 letter code)"
27countryName_value = SE
28stateOrProvinceName = "2. State or Province Name (full name) "
29stateOrProvinceName_value = Solna
30localityName = "3. Locality Name (eg, city) "
31localityName_value = Mooo
320.organizationName = "4. Organization Name (eg, company) "
330.organizationName_value = Haxx
34organizationalUnitName = "5. Organizational Unit Name (eg, section) "
35organizationalUnitName_value = Coolx
36commonName = "6. Common Name (eg, FQDN) "
37commonName_value = "storbror"
381.commonName = "6. Common Name (eg, FQDN) "
391.commonName_value = "localhost"
40[something]
41-----BEGIN RSA PRIVATE KEY-----
42MIIC1AIBAAKBmwNZN+oG6vJ8DAze+FvOKSS49X4xGMxALhKRLhQQb7qvM+7BcMgR
43v+RKxkX7SNgcxKPLcIHf7QQ6DBIlLXuAuVHQtWW9b06q64kBElkEwh6gP5Ia9JrR
44ysGbu2U6NRP+xBU33dVwZjF07ocN9Pp392W4VxEc+g3+FkRzUEaahDGOabmjgKuq
45DdlKdZLzgJj7+9sEKpb7+FdG56rZAgMBAAECgZsCkK1Z1XTUz5x3m7PMuHEiVaKS
46yk/B4ISq6pbO/gxpieARzhR038wNug6L+8VA8UDebXHBvGYYr9Mhb2OZUfIlr+nW
47h7kmHZ+T88M3eH/hQc3jtnvnu1dGmMlIXjTLQOrKgrAn6fYaw2HAGPdGKjpatAy/
483vRjguv/22pNJLRQmMHdozJdc8mEYY+AhqrQxXCWQT/1peZzlq/IAQJOAfhE2YWf
49qB9iYNmuhxJ1PolPW4I63atXuoavqadbaRoaLm/pqLVB1QjMeyak8O/0TmO6CXk6
50878ps85fLFgARRjSYX+rYwoYNzqxK3cBAk4Bsy4oofReVT8xB+7rFZFMV4McyL7e
51sOABFqecLuNIGT6CdeEU1z7TUfq8sKM1MQ25e0J1PMmoWTqDwzhnxK+ckeFsZ8Te
52dgqVW+Oyy9kCTgHqyc/P/uEZkp1ioDu0WkpAR+1vZa2jeyH+vm9nhE9Z6Uty/r6F
53k4otIx9lMDmTwXqeE03vINJlJshqvjShfbnCe9gK8xrUk1cFl7QPAQJOATD3LQRq
54At2MniioFtiTbUN6n2ZS1C5xnHGq3fnBzxnZw4UmSfuZjG/L3gWPKkyJCK3HYe9K
55ho6ZQhNB6P5d7sQQjG6f+SIRwp+VjwvpAk4AnM4do54FETeLHhY4zy47dM/zdy3u
56iDjiFwoMTR+PfF03evsWe5pW3EaXolGi3FRAZ/idFA+L3Gi2y4xR44z71HkbF32L
57WKaLdOuBQvI=
58-----END RSA PRIVATE KEY-----
59Certificate:
60 Data:
61 Version: 3 (0x2)
62 Serial Number:
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070063 a4:17:70:09:88:8c:48:cd
64 Signature Algorithm: sha1WithRSAEncryption
Lucas Eckels9bd90e62012-08-06 15:07:02 -070065 Issuer: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
66 Validity
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070067 Not Before: Feb 22 15:38:48 2014 GMT
68 Not After : Feb 20 15:38:48 2024 GMT
Lucas Eckels9bd90e62012-08-06 15:07:02 -070069 Subject: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
70 Subject Public Key Info:
71 Public Key Algorithm: rsaEncryption
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070072 Public-Key: (1234 bit)
73 Modulus:
Lucas Eckels9bd90e62012-08-06 15:07:02 -070074 03:59:37:ea:06:ea:f2:7c:0c:0c:de:f8:5b:ce:29:
75 24:b8:f5:7e:31:18:cc:40:2e:12:91:2e:14:10:6f:
76 ba:af:33:ee:c1:70:c8:11:bf:e4:4a:c6:45:fb:48:
77 d8:1c:c4:a3:cb:70:81:df:ed:04:3a:0c:12:25:2d:
78 7b:80:b9:51:d0:b5:65:bd:6f:4e:aa:eb:89:01:12:
79 59:04:c2:1e:a0:3f:92:1a:f4:9a:d1:ca:c1:9b:bb:
80 65:3a:35:13:fe:c4:15:37:dd:d5:70:66:31:74:ee:
81 87:0d:f4:fa:77:f7:65:b8:57:11:1c:fa:0d:fe:16:
82 44:73:50:46:9a:84:31:8e:69:b9:a3:80:ab:aa:0d:
83 d9:4a:75:92:f3:80:98:fb:fb:db:04:2a:96:fb:f8:
84 57:46:e7:aa:d9
85 Exponent: 65537 (0x10001)
86 X509v3 extensions:
87 X509v3 Subject Alternative Name:
88 DNS:localhost
89 Netscape Cert Type:
90 SSL Server
91 Netscape Comment:
92 CURL stunnel server test certificate
93 X509v3 Key Usage:
94 Digital Signature, Key Encipherment
95 X509v3 Extended Key Usage:
96 TLS Web Server Authentication
97 X509v3 Basic Constraints:
98 CA:FALSE
99 X509v3 Subject Key Identifier:
100 35:77:35:3B:9B:98:3C:B6:C7:9A:E7:A8:04:B9:7C:70:AD:FA:37:A9
101 Subject Information Access:
102 ad dvcs - URI:https://localhost:8433/509
103
104 Authority Information Access:
105 ad dvcs - URI:https://localhost:8433/509
106
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700107 Signature Algorithm: sha1WithRSAEncryption
108 00:45:db:09:5b:08:5b:1a:ff:71:50:6c:12:ad:8e:78:32:1d:
109 7d:e7:e4:d3:3e:5f:ca:20:84:aa:ff:9a:c2:b6:a9:48:93:1f:
110 73:27:d1:68:05:76:36:f9:c1:53:90:ad:8a:c0:b3:12:c8:11:
111 5c:2c:65:01:ac:31:d1:8e:60:6e:c6:f5:ba:9d:69:e8:f1:ac:
112 4a:de:52:94:cd:06:24:45:72:64:89:0f:57:8b:26:2b:16:cf:
113 0b:27:c4:e8:73:c7:d3:e5:42:38:95:57:b5:bb:83:b4:92:d4:
114 e0:cd:fb:c8:f5:d2:da:1d:11:fe:3c:18:20:8b:bd:22:31:1c:
115 5a:82:d4:f5:71:8d:8a:e3:13:82:c5:2d:f3:9f:d0:b7:b8:4b:
116 d2:46:9d:8e:1a:d7:99:6e:c1:b9:a0
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700117-----BEGIN CERTIFICATE-----
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700118MIIDtzCCAwWgAwIBAgIJAKQXcAmIjEjNMA0GCSqGSIb3DQEBBQUAMHIxCzAJBgNV
119BAYTAlNFMQ4wDAYDVQQIEwVTb2xuYTENMAsGA1UEBxMETW9vbzENMAsGA1UEChME
120SGF4eDEOMAwGA1UECxMFQ29vbHgxETAPBgNVBAMTCHN0b3Jicm9yMRIwEAYDVQQD
121Ewlsb2NhbGhvc3QwHhcNMTQwMjIyMTUzODQ4WhcNMjQwMjIwMTUzODQ4WjByMQsw
122CQYDVQQGEwJTRTEOMAwGA1UECBMFU29sbmExDTALBgNVBAcTBE1vb28xDTALBgNV
123BAoTBEhheHgxDjAMBgNVBAsTBUNvb2x4MREwDwYDVQQDEwhzdG9yYnJvcjESMBAG
124A1UEAxMJbG9jYWxob3N0MIG5MA0GCSqGSIb3DQEBAQUAA4GnADCBowKBmwNZN+oG
1256vJ8DAze+FvOKSS49X4xGMxALhKRLhQQb7qvM+7BcMgRv+RKxkX7SNgcxKPLcIHf
1267QQ6DBIlLXuAuVHQtWW9b06q64kBElkEwh6gP5Ia9JrRysGbu2U6NRP+xBU33dVw
127ZjF07ocN9Pp392W4VxEc+g3+FkRzUEaahDGOabmjgKuqDdlKdZLzgJj7+9sEKpb7
128+FdG56rZAgMBAAGjggEeMIIBGjAUBgNVHREEDTALgglsb2NhbGhvc3QwEQYJYIZI
129AYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRDVVJMIHN0dW5uZWwgc2VydmVy
130IHRlc3QgY2VydGlmaWNhdGUwCwYDVR0PBAQDAgWgMBMGA1UdJQQMMAoGCCsGAQUF
131BwMBMAkGA1UdEwQCMAAwHQYDVR0OBBYEFDV3NTubmDy2x5rnqAS5fHCt+jepMDYG
132CCsGAQUFBwELBCowKDAmBggrBgEFBQcwBIYaaHR0cHM6Ly9sb2NhbGhvc3Q6ODQz
133My81MDkwNgYIKwYBBQUHAQEEKjAoMCYGCCsGAQUFBzAEhhpodHRwczovL2xvY2Fs
134aG9zdDo4NDMzLzUwOTANBgkqhkiG9w0BAQUFAAOBnAAARdsJWwhbGv9xUGwSrY54
135Mh195+TTPl/KIISq/5rCtqlIkx9zJ9FoBXY2+cFTkK2KwLMSyBFcLGUBrDHRjmBu
136xvW6nWno8axK3lKUzQYkRXJkiQ9XiyYrFs8LJ8Toc8fT5UI4lVe1u4O0ktTgzfvI
1379dLaHRH+PBggi70iMRxagtT1cY2K4xOCxS3zn9C3uEvSRp2OGteZbsG5oA==
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700138-----END CERTIFICATE-----
139-----BEGIN DH PARAMETERS-----
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700140MIGHAoGBAMq/KFGh2oy16WzkFs1U71Uz7dIEKvSYfc+zo439pYyVzcD8MkcC15Zb
141ayK3jPBYf07eKzc2TvI3/ZSducmECNP8gk2gAndP1P1rmpheN+owZJS7kQVfQmHl
142UmT87U99NPaMHXMNOsFj/3mbAaANndKEnd8PM2r5fg16C4+2e5KzAgEC
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700143-----END DH PARAMETERS-----