2
0

stunnel.pem 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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:
  63. 09:c2:f9:ca:9a:d8
  64. Signature Algorithm: md5WithRSAEncryption
  65. Issuer: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
  66. Validity
  67. Not Before: Jan 5 11:25:13 2004 GMT
  68. Not After : Feb 13 11:25:13 2008 GMT
  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
  72. RSA Public Key: (1234 bit)
  73. Modulus (1234 bit):
  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. Authority Information Access:
  104. ad dvcs - URI:https://localhost:8433/509
  105. Signature Algorithm: md5WithRSAEncryption
  106. 02:47:57:18:5f:54:3f:1d:29:0a:05:7a:d1:0f:e6:b9:2c:8b:
  107. 29:38:50:bf:c1:a1:7f:73:4a:9d:f1:1b:bf:2e:ea:87:91:dd:
  108. ff:75:73:57:78:cf:75:52:57:0b:5b:bb:d4:77:b2:dd:e8:0c:
  109. 06:ce:1b:c0:3d:9f:68:c0:0b:66:b8:f9:46:db:04:a9:2f:a3:
  110. 5e:9c:c6:70:ff:1d:af:1f:17:9c:38:3d:12:aa:af:7b:72:44:
  111. a0:44:41:6b:9a:9b:60:8c:50:94:f1:d7:a5:77:6b:d3:0e:66:
  112. 88:a1:52:63:23:f6:66:a6:ea:f9:d0:df:4d:8a:14:f0:73:c6:
  113. b6:b6:b6:68:4f:3d:9a:b6:31:ba:19:f3:66:9f:16:6d:87:64:
  114. 32:53:d2:90:e5:8c:1e:f5:18:61:1a
  115. -----BEGIN CERTIFICATE-----
  116. MIIDujCCAwigAwIBAgIGCcMA3QkhMA0GCSqGSIb3DQEBBAUAMHIxCzAJBgNVBAYT
  117. AlNFMQ4wDAYDVQQIEwVTb2xuYTENMAsGA1UEBxMETW9vbzENMAsGA1UEChMESGF4
  118. eDEOMAwGA1UECxMFQ29vbHgxETAPBgNVBAMTCHN0b3Jicm9yMRIwEAYDVQQDEwls
  119. b2NhbGhvc3QwHhcNMDQwMTA1MTQ0MjU2WhcNMDgwMjEzMTQ0MjU2WjByMQswCQYD
  120. VQQGEwJTRTEOMAwGA1UECBMFU29sbmExDTALBgNVBAcTBE1vb28xDTALBgNVBAoT
  121. BEhheHgxDjAMBgNVBAsTBUNvb2x4MREwDwYDVQQDEwhzdG9yYnJvcjESMBAGA1UE
  122. AxMJbG9jYWxob3N0MIG5MA0GCSqGSIb3DQEBAQUAA4GnADCBowKBmwNZN+oG6vJ8
  123. DAze+FvOKSS49X4xGMxALhKRLhQQb7qvM+7BcMgRv+RKxkX7SNgcxKPLcIHf7QQ6
  124. DBIlLXuAuVHQtWW9b06q64kBElkEwh6gP5Ia9JrRysGbu2U6NRP+xBU33dVwZjF0
  125. 7ocN9Pp392W4VxEc+g3+FkRzUEaahDGOabmjgKuqDdlKdZLzgJj7+9sEKpb7+FdG
  126. 56rZAgMBAAGjggEkMIIBIDARBglghkgBhvhCAQEEBAMCBkAwMwYJYIZIAYb4QgEN
  127. BCYWJENVUkwgc3R1bm5lbCBzZXJ2ZXIgdGVzdCBjZXJ0aWZpY2F0ZTALBgNVHQ8E
  128. BAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCQYDVR0TBAIwADAdBgNVHQ4EFgQU
  129. NXc1O5uYPLbHmueoBLl8cK36N6kwNgYIKwYBBQUHAQsEKjAoMCYGCCsGAQUFBzAE
  130. hhpodHRwczovL2xvY2FsaG9zdDo4NDMzLzUwOTA2BggrBgEFBQcBAQQqMCgwJgYI
  131. KwYBBQUHMASGGmh0dHBzOi8vbG9jYWxob3N0Ojg0MzMvNTA5MBoGA1UdEQQTMBGH
  132. BH8AAAGCCWxvY2FsaG9zdDANBgkqhkiG9w0BAQQFAAOBnAAAIHkvI0V6padfc8Lv
  133. onuNqBwCMIg4SugCslkN597Yb8ZDEAUe3ArkOvzAHUngsD5D0gfbKblKP/P0bN6Y
  134. Ft896NmH4QFsDAetZcCFf24AM4DbUQo5jtG+dkanI/7IxxNYJ1PQ64/yscdQFvHW
  135. xhIX3Q6FqABjcN5nc80Rog+b6eS8QRX1BRnQqbGtocuptUgW5mWsSb+DR6pZbA==
  136. -----END CERTIFICATE-----
  137. -----BEGIN DH PARAMETERS-----
  138. MIGHAoGBAMq/KFGh2oy16WzkFs1U71Uz7dIEKvSYfc+zo439pYyVzcD8MkcC15Zb
  139. ayK3jPBYf07eKzc2TvI3/ZSducmECNP8gk2gAndP1P1rmpheN+owZJS7kQVfQmHl
  140. UmT87U99NPaMHXMNOsFj/3mbAaANndKEnd8PM2r5fg16C4+2e5KzAgEC
  141. -----END DH PARAMETERS-----