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 MIIEpAIBAAKCAQEA4m+wAdU3ml4EGud+/rx3ZY9VnNIfRZo6yDGogOk/Pg1NM7zo 43 +cXsRhQZuFNskxOgiYv9vTLJCocPXGJBRhosnCkUXypbaismZLGXBxyvUNvI4cNi 44 /icPnq9RHwWCbX9UpSn6nsjcVyHacQeHEza8pC5MnFDC8tTTy3rCpWe2LKSp3X6g 45 E4vKRiLFbXAZshrtk8wKiRuDuiNhxUyYcVs3s5+Il8Y9yu/kGkY6U15SizO+o224 46 kfOHL6W9Ut4l2xY7aRZLWhqjyihlaHSLFEiLkR9fPMVDTOF6j/g2fFAjNePw6+9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YhipjWOy 63 j4v1l+dYVc67Gryw984upuEAj7LNGmGaiBVfuDEDkRvefgrGlkRGVa1XWN4QZckV 64 UcamfwKBgQDO9xGun8Q97KonBRih4aNBM+89/8/deZNPAc8MAImzFHyTMNTD06C/ 65 3wnJwMiyNbZEUfKavapNz3+oe0fXMbgjfEypbaP7jKHSxr2tKwJV+MK1RVF4Sd3l 66 ou6XtlnToLp/LO1X3E/IcYameT5VLi/4OyFOMKe9K0Woxvhz42PDww== 67 -----END RSA PRIVATE KEY----- 68 Certificate: 69 Data: 70 Version: 3 (0x2) 71 Serial Number: 17862059579548371559 (0xf7e2c88ce3d80a67) 72 Signature Algorithm: sha256WithRSAEncryption 73 Issuer: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost 74 Validity 75 Not Before: Aug 31 23:39:18 2018 GMT 76 Not After : Aug 28 23:39:18 2028 GMT 77 Subject: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost 78 Subject Public Key Info: 79 Public Key Algorithm: rsaEncryption 80 Public-Key: (2048 bit) 81 Modulus: 82 00:e2:6f:b0:01:d5:37:9a:5e:04:1a:e7:7e:fe:bc: 83 77:65:8f:55:9c:d2:1f:45:9a:3a:c8:31:a8:80:e9: 84 3f:3e:0d:4d:33:bc:e8:f9:c5:ec:46:14:19:b8:53: 85 6c:93:13:a0:89:8b:fd:bd:32:c9:0a:87:0f:5c:62: 86 41:46:1a:2c:9c:29:14:5f:2a:5b:6a:2b:26:64:b1: 87 97:07:1c:af:50:db:c8:e1:c3:62:fe:27:0f:9e:af: 88 51:1f:05:82:6d:7f:54:a5:29:fa:9e:c8:dc:57:21: 89 da:71:07:87:13:36:bc:a4:2e:4c:9c:50:c2:f2:d4: 90 d3:cb:7a:c2:a5:67:b6:2c:a4:a9:dd:7e:a0:13:8b: 91 ca:46:22:c5:6d:70:19:b2:1a:ed:93:cc:0a:89:1b: 92 83:ba:23:61:c5:4c:98:71:5b:37:b3:9f:88:97:c6: 93 3d:ca:ef:e4:1a:46:3a:53:5e:52:8b:33:be:a3:6d: 94 b8:91:f3:87:2f:a5:bd:52:de:25:db:16:3b:69:16: 95 4b:5a:1a:a3:ca:28:65:68:74:8b:14:48:8b:91:1f: 96 5f:3c:c5:43:4c:e1:7a:8f:f8:36:7c:50:23:35:e3: 97 f0:eb:ef:58:55:b5:6a:d0:f4:05:d5:c6:34:7b:0e: 98 b0:30:db:ee:ed:c5:4b:66:8f:b1:cf:9b:68:79:b3: 99 87:e3 100 Exponent: 65537 (0x10001) 101 X509v3 extensions: 102 X509v3 Subject Alternative Name: 103 DNS:localhost 104 Netscape Cert Type: 105 SSL Server 106 Netscape Comment: 107 CURL stunnel server test certificate 108 X509v3 Key Usage: 109 Digital Signature, Key Encipherment 110 X509v3 Extended Key Usage: 111 TLS Web Server Authentication 112 X509v3 Basic Constraints: 113 CA:FALSE 114 X509v3 Subject Key Identifier: 115 5D:A5:DB:5A:C8:6D:31:A6:B0:E3:4D:47:50:AA:87:A9:B2:DE:9F:37 116 Subject Information Access: 117 ad dvcs - URI:https://localhost:8433/509 118 119 Authority Information Access: 120 ad dvcs - URI:https://localhost:8433/509 121 122 Signature Algorithm: sha256WithRSAEncryption 123 63:26:72:df:c4:68:af:f1:30:60:4e:ac:94:bd:37:3e:c4:1f: 124 6b:43:6e:0f:1c:67:49:f4:fb:19:83:23:b6:75:46:a0:84:bd: 125 8b:61:21:00:05:6b:d6:09:16:94:8f:5b:9d:98:98:d6:1e:86: 126 23:26:1e:e8:39:ac:0a:89:ea:17:b5:4f:60:20:9a:2b:4a:d4: 127 9f:4e:3d:d4:ac:05:db:25:94:56:e3:87:13:ea:ab:83:57:18: 128 ff:26:e3:46:0c:e6:49:7e:74:2e:77:98:54:52:30:ea:6f:58: 129 35:dc:63:fb:e4:a2:c3:12:87:dd:e9:2a:18:5c:9c:cf:a4:d3: 130 58:7f:d0:50:50:0f:b9:b7:cb:a8:d9:bd:b8:7c:e4:29:d5:f3: 131 fd:6f:3f:ea:fc:0f:21:3f:ad:2f:ac:3c:28:e3:74:87:43:a9: 132 f0:46:81:4b:c8:a5:75:50:5b:e2:d5:75:0a:98:af:2c:6d:6b: 133 6a:cc:c6:37:5f:04:52:c4:d8:6a:a0:f6:99:76:c3:3b:3b:50: 134 c8:bc:ea:50:04:a1:c0:54:82:b4:2f:09:b8:6e:ac:cc:64:12: 135 ce:b8:24:7a:5a:e5:f5:e5:79:9f:28:da:a2:11:45:f5:2a:cb: 136 e3:b0:96:6a:ac:2b:d3:02:01:21:6d:38:ef:52:60:5e:50:b1: 137 25:e5:4f:69 138 -----BEGIN CERTIFICATE----- 139 MIIEhzCCA2+gAwIBAgIJAPfiyIzj2ApnMA0GCSqGSIb3DQEBCwUAMHIxCzAJBgNV 140 BAYTAlNFMQ4wDAYDVQQIEwVTb2xuYTENMAsGA1UEBxMETW9vbzENMAsGA1UEChME 141 SGF4eDEOMAwGA1UECxMFQ29vbHgxETAPBgNVBAMTCHN0b3Jicm9yMRIwEAYDVQQD 142 Ewlsb2NhbGhvc3QwHhcNMTgwODMxMjMzOTE4WhcNMjgwODI4MjMzOTE4WjByMQsw 143 CQYDVQQGEwJTRTEOMAwGA1UECBMFU29sbmExDTALBgNVBAcTBE1vb28xDTALBgNV 144 BAoTBEhheHgxDjAMBgNVBAsTBUNvb2x4MREwDwYDVQQDEwhzdG9yYnJvcjESMBAG 145 A1UEAxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA 146 4m+wAdU3ml4EGud+/rx3ZY9VnNIfRZo6yDGogOk/Pg1NM7zo+cXsRhQZuFNskxOg 147 iYv9vTLJCocPXGJBRhosnCkUXypbaismZLGXBxyvUNvI4cNi/icPnq9RHwWCbX9U 148 pSn6nsjcVyHacQeHEza8pC5MnFDC8tTTy3rCpWe2LKSp3X6gE4vKRiLFbXAZshrt 149 k8wKiRuDuiNhxUyYcVs3s5+Il8Y9yu/kGkY6U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YcDFqQhYaRexMP6h0Ugk9x 168 sIs2tcUfix7xemGLdawkGD041MJW8SK0+iY/s2wIXH/Pp5w7/e/RmTcjTa3QnL8O 169 zbyXnZVvCEpDhRefgYrY5lR4SeZHl8+A6qe+M37g9Lai+ASCDuGfiynRW8JqAA3n 170 5ozPhlQF3HaHglvEONUM0Qxd5a4jVjTXQYfV+hqvkz/Ykv8rZa8rVjx/bi1sKM66 171 +WwPhqnjh31d+nFezqDJC4j0wLmxorDkMwIBAg== 172 -----END DH PARAMETERS-----