Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 1 | # |
| 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 | # |
| 9 | extensions = x509v3 |
| 10 | [ x509v3 ] |
| 11 | subjectAltName = DNS:localhost |
| 12 | nsCertType = server |
| 13 | nsComment = "CURL stunnel server test certificate" |
| 14 | keyUsage = digitalSignature,keyEncipherment |
| 15 | extendedKeyUsage = serverAuth |
| 16 | basicConstraints = CA:false |
| 17 | subjectKeyIdentifier = hash |
| 18 | subjectInfoAccess = AD_DVCS;URI:"https://localhost:8433/509" |
| 19 | authorityInfoAccess = AD_DVCS;URI:"https://localhost:8433/509" |
| 20 | [ req ] |
| 21 | default_bits = 1234 |
| 22 | distinguished_name = req_DN |
| 23 | default_md = sha1 |
| 24 | string_mask = pkix |
| 25 | [ req_DN ] |
| 26 | countryName = "1. Country Name (2 letter code)" |
| 27 | countryName_value = SE |
| 28 | stateOrProvinceName = "2. State or Province Name (full name) " |
| 29 | stateOrProvinceName_value = Solna |
| 30 | localityName = "3. Locality Name (eg, city) " |
| 31 | localityName_value = Mooo |
| 32 | 0.organizationName = "4. Organization Name (eg, company) " |
| 33 | 0.organizationName_value = Haxx |
| 34 | organizationalUnitName = "5. Organizational Unit Name (eg, section) " |
| 35 | organizationalUnitName_value = Coolx |
| 36 | commonName = "6. Common Name (eg, FQDN) " |
| 37 | commonName_value = "storbror" |
| 38 | 1.commonName = "6. Common Name (eg, FQDN) " |
| 39 | 1.commonName_value = "localhost" |
| 40 | [something] |
| 41 | -----BEGIN RSA PRIVATE KEY----- |
| 42 | MIIC1AIBAAKBmwNZN+oG6vJ8DAze+FvOKSS49X4xGMxALhKRLhQQb7qvM+7BcMgR |
| 43 | v+RKxkX7SNgcxKPLcIHf7QQ6DBIlLXuAuVHQtWW9b06q64kBElkEwh6gP5Ia9JrR |
| 44 | ysGbu2U6NRP+xBU33dVwZjF07ocN9Pp392W4VxEc+g3+FkRzUEaahDGOabmjgKuq |
| 45 | DdlKdZLzgJj7+9sEKpb7+FdG56rZAgMBAAECgZsCkK1Z1XTUz5x3m7PMuHEiVaKS |
| 46 | yk/B4ISq6pbO/gxpieARzhR038wNug6L+8VA8UDebXHBvGYYr9Mhb2OZUfIlr+nW |
| 47 | h7kmHZ+T88M3eH/hQc3jtnvnu1dGmMlIXjTLQOrKgrAn6fYaw2HAGPdGKjpatAy/ |
| 48 | 3vRjguv/22pNJLRQmMHdozJdc8mEYY+AhqrQxXCWQT/1peZzlq/IAQJOAfhE2YWf |
| 49 | qB9iYNmuhxJ1PolPW4I63atXuoavqadbaRoaLm/pqLVB1QjMeyak8O/0TmO6CXk6 |
| 50 | 878ps85fLFgARRjSYX+rYwoYNzqxK3cBAk4Bsy4oofReVT8xB+7rFZFMV4McyL7e |
| 51 | sOABFqecLuNIGT6CdeEU1z7TUfq8sKM1MQ25e0J1PMmoWTqDwzhnxK+ckeFsZ8Te |
| 52 | dgqVW+Oyy9kCTgHqyc/P/uEZkp1ioDu0WkpAR+1vZa2jeyH+vm9nhE9Z6Uty/r6F |
| 53 | k4otIx9lMDmTwXqeE03vINJlJshqvjShfbnCe9gK8xrUk1cFl7QPAQJOATD3LQRq |
| 54 | At2MniioFtiTbUN6n2ZS1C5xnHGq3fnBzxnZw4UmSfuZjG/L3gWPKkyJCK3HYe9K |
| 55 | ho6ZQhNB6P5d7sQQjG6f+SIRwp+VjwvpAk4AnM4do54FETeLHhY4zy47dM/zdy3u |
| 56 | iDjiFwoMTR+PfF03evsWe5pW3EaXolGi3FRAZ/idFA+L3Gi2y4xR44z71HkbF32L |
| 57 | WKaLdOuBQvI= |
| 58 | -----END RSA PRIVATE KEY----- |
| 59 | Certificate: |
| 60 | Data: |
| 61 | Version: 3 (0x2) |
| 62 | Serial Number: |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 63 | a4:17:70:09:88:8c:48:cd |
| 64 | Signature Algorithm: sha1WithRSAEncryption |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 65 | Issuer: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost |
| 66 | Validity |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 67 | Not Before: Feb 22 15:38:48 2014 GMT |
| 68 | Not After : Feb 20 15:38:48 2024 GMT |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 69 | 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 SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 72 | Public-Key: (1234 bit) |
| 73 | Modulus: |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 74 | 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 SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 107 | 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 Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 117 | -----BEGIN CERTIFICATE----- |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 118 | MIIDtzCCAwWgAwIBAgIJAKQXcAmIjEjNMA0GCSqGSIb3DQEBBQUAMHIxCzAJBgNV |
| 119 | BAYTAlNFMQ4wDAYDVQQIEwVTb2xuYTENMAsGA1UEBxMETW9vbzENMAsGA1UEChME |
| 120 | SGF4eDEOMAwGA1UECxMFQ29vbHgxETAPBgNVBAMTCHN0b3Jicm9yMRIwEAYDVQQD |
| 121 | Ewlsb2NhbGhvc3QwHhcNMTQwMjIyMTUzODQ4WhcNMjQwMjIwMTUzODQ4WjByMQsw |
| 122 | CQYDVQQGEwJTRTEOMAwGA1UECBMFU29sbmExDTALBgNVBAcTBE1vb28xDTALBgNV |
| 123 | BAoTBEhheHgxDjAMBgNVBAsTBUNvb2x4MREwDwYDVQQDEwhzdG9yYnJvcjESMBAG |
| 124 | A1UEAxMJbG9jYWxob3N0MIG5MA0GCSqGSIb3DQEBAQUAA4GnADCBowKBmwNZN+oG |
| 125 | 6vJ8DAze+FvOKSS49X4xGMxALhKRLhQQb7qvM+7BcMgRv+RKxkX7SNgcxKPLcIHf |
| 126 | 7QQ6DBIlLXuAuVHQtWW9b06q64kBElkEwh6gP5Ia9JrRysGbu2U6NRP+xBU33dVw |
| 127 | ZjF07ocN9Pp392W4VxEc+g3+FkRzUEaahDGOabmjgKuqDdlKdZLzgJj7+9sEKpb7 |
| 128 | +FdG56rZAgMBAAGjggEeMIIBGjAUBgNVHREEDTALgglsb2NhbGhvc3QwEQYJYIZI |
| 129 | AYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRDVVJMIHN0dW5uZWwgc2VydmVy |
| 130 | IHRlc3QgY2VydGlmaWNhdGUwCwYDVR0PBAQDAgWgMBMGA1UdJQQMMAoGCCsGAQUF |
| 131 | BwMBMAkGA1UdEwQCMAAwHQYDVR0OBBYEFDV3NTubmDy2x5rnqAS5fHCt+jepMDYG |
| 132 | CCsGAQUFBwELBCowKDAmBggrBgEFBQcwBIYaaHR0cHM6Ly9sb2NhbGhvc3Q6ODQz |
| 133 | My81MDkwNgYIKwYBBQUHAQEEKjAoMCYGCCsGAQUFBzAEhhpodHRwczovL2xvY2Fs |
| 134 | aG9zdDo4NDMzLzUwOTANBgkqhkiG9w0BAQUFAAOBnAAARdsJWwhbGv9xUGwSrY54 |
| 135 | Mh195+TTPl/KIISq/5rCtqlIkx9zJ9FoBXY2+cFTkK2KwLMSyBFcLGUBrDHRjmBu |
| 136 | xvW6nWno8axK3lKUzQYkRXJkiQ9XiyYrFs8LJ8Toc8fT5UI4lVe1u4O0ktTgzfvI |
| 137 | 9dLaHRH+PBggi70iMRxagtT1cY2K4xOCxS3zn9C3uEvSRp2OGteZbsG5oA== |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 138 | -----END CERTIFICATE----- |
| 139 | -----BEGIN DH PARAMETERS----- |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 140 | MIGHAoGBAMq/KFGh2oy16WzkFs1U71Uz7dIEKvSYfc+zo439pYyVzcD8MkcC15Zb |
| 141 | ayK3jPBYf07eKzc2TvI3/ZSducmECNP8gk2gAndP1P1rmpheN+owZJS7kQVfQmHl |
| 142 | UmT87U99NPaMHXMNOsFj/3mbAaANndKEnd8PM2r5fg16C4+2e5KzAgEC |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 143 | -----END DH PARAMETERS----- |