#
#  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-----
MIIEpAIBAAKCAQEA4m+wAdU3ml4EGud+/rx3ZY9VnNIfRZo6yDGogOk/Pg1NM7zo
+cXsRhQZuFNskxOgiYv9vTLJCocPXGJBRhosnCkUXypbaismZLGXBxyvUNvI4cNi
/icPnq9RHwWCbX9UpSn6nsjcVyHacQeHEza8pC5MnFDC8tTTy3rCpWe2LKSp3X6g
E4vKRiLFbXAZshrtk8wKiRuDuiNhxUyYcVs3s5+Il8Y9yu/kGkY6U15SizO+o224
kfOHL6W9Ut4l2xY7aRZLWhqjyihlaHSLFEiLkR9fPMVDTOF6j/g2fFAjNePw6+9Y
VbVq0PQF1cY0ew6wMNvu7cVLZo+xz5toebOH4wIDAQABAoIB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Gun8Q97KonBRih4aNBM+89/8/deZNPAc8MAImzFHyTMNTD06C/
3wnJwMiyNbZEUfKavapNz3+oe0fXMbgjfEypbaP7jKHSxr2tKwJV+MK1RVF4Sd3l
ou6XtlnToLp/LO1X3E/IcYameT5VLi/4OyFOMKe9K0Woxvhz42PDww==
-----END RSA PRIVATE KEY-----
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 17862059579548371559 (0xf7e2c88ce3d80a67)
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
        Validity
            Not Before: Aug 31 23:39:18 2018 GMT
            Not After : Aug 28 23:39:18 2028 GMT
        Subject: C=SE, ST=Solna, L=Mooo, O=Haxx, OU=Coolx, CN=storbror, CN=localhost
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
                    00:e2:6f:b0:01:d5:37:9a:5e:04:1a:e7:7e:fe:bc:
                    77:65:8f:55:9c:d2:1f:45:9a:3a:c8:31:a8:80:e9:
                    3f:3e:0d:4d:33:bc:e8:f9:c5:ec:46:14:19:b8:53:
                    6c:93:13:a0:89:8b:fd:bd:32:c9:0a:87:0f:5c:62:
                    41:46:1a:2c:9c:29:14:5f:2a:5b:6a:2b:26:64:b1:
                    97:07:1c:af:50:db:c8:e1:c3:62:fe:27:0f:9e:af:
                    51:1f:05:82:6d:7f:54:a5:29:fa:9e:c8:dc:57:21:
                    da:71:07:87:13:36:bc:a4:2e:4c:9c:50:c2:f2:d4:
                    d3:cb:7a:c2:a5:67:b6:2c:a4:a9:dd:7e:a0:13:8b:
                    ca:46:22:c5:6d:70:19:b2:1a:ed:93:cc:0a:89:1b:
                    83:ba:23:61:c5:4c:98:71:5b:37:b3:9f:88:97:c6:
                    3d:ca:ef:e4:1a:46:3a:53:5e:52:8b:33:be:a3:6d:
                    b8:91:f3:87:2f:a5:bd:52:de:25:db:16:3b:69:16:
                    4b:5a:1a:a3:ca:28:65:68:74:8b:14:48:8b:91:1f:
                    5f:3c:c5:43:4c:e1:7a:8f:f8:36:7c:50:23:35:e3:
                    f0:eb:ef:58:55:b5:6a:d0:f4:05:d5:c6:34:7b:0e:
                    b0:30:db:ee:ed:c5:4b:66:8f:b1:cf:9b:68:79:b3:
                    87:e3
                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:
                5D:A5:DB:5A:C8:6D:31:A6:B0:E3:4D:47:50:AA:87:A9:B2:DE:9F:37
            Subject Information Access:
                ad dvcs - URI:https://localhost:8433/509

            Authority Information Access:
                ad dvcs - URI:https://localhost:8433/509

    Signature Algorithm: sha256WithRSAEncryption
         63:26:72:df:c4:68:af:f1:30:60:4e:ac:94:bd:37:3e:c4:1f:
         6b:43:6e:0f:1c:67:49:f4:fb:19:83:23:b6:75:46:a0:84:bd:
         8b:61:21:00:05:6b:d6:09:16:94:8f:5b:9d:98:98:d6:1e:86:
         23:26:1e:e8:39:ac:0a:89:ea:17:b5:4f:60:20:9a:2b:4a:d4:
         9f:4e:3d:d4:ac:05:db:25:94:56:e3:87:13:ea:ab:83:57:18:
         ff:26:e3:46:0c:e6:49:7e:74:2e:77:98:54:52:30:ea:6f:58:
         35:dc:63:fb:e4:a2:c3:12:87:dd:e9:2a:18:5c:9c:cf:a4:d3:
         58:7f:d0:50:50:0f:b9:b7:cb:a8:d9:bd:b8:7c:e4:29:d5:f3:
         fd:6f:3f:ea:fc:0f:21:3f:ad:2f:ac:3c:28:e3:74:87:43:a9:
         f0:46:81:4b:c8:a5:75:50:5b:e2:d5:75:0a:98:af:2c:6d:6b:
         6a:cc:c6:37:5f:04:52:c4:d8:6a:a0:f6:99:76:c3:3b:3b:50:
         c8:bc:ea:50:04:a1:c0:54:82:b4:2f:09:b8:6e:ac:cc:64:12:
         ce:b8:24:7a:5a:e5:f5:e5:79:9f:28:da:a2:11:45:f5:2a:cb:
         e3:b0:96:6a:ac:2b:d3:02:01:21:6d:38:ef:52:60:5e:50:b1:
         25:e5:4f:69
-----BEGIN CERTIFICATE-----
MIIEhzCCA2+gAwIBAgIJAPfiyIzj2ApnMA0GCSqGSIb3DQEBCwUAMHIxCzAJBgNV
BAYTAlNFMQ4wDAYDVQQIEwVTb2xuYTENMAsGA1UEBxMETW9vbzENMAsGA1UEChME
SGF4eDEOMAwGA1UECxMFQ29vbHgxETAPBgNVBAMTCHN0b3Jicm9yMRIwEAYDVQQD
Ewlsb2NhbGhvc3QwHhcNMTgwODMxMjMzOTE4WhcNMjgwODI4MjMzOTE4WjByMQsw
CQYDVQQGEwJTRTEOMAwGA1UECBMFU29sbmExDTALBgNVBAcTBE1vb28xDTALBgNV
BAoTBEhheHgxDjAMBgNVBAsTBUNvb2x4MREwDwYDVQQDEwhzdG9yYnJvcjESMBAG
A1UEAxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
4m+wAdU3ml4EGud+/rx3ZY9VnNIfRZo6yDGogOk/Pg1NM7zo+cXsRhQZuFNskxOg
iYv9vTLJCocPXGJBRhosnCkUXypbaismZLGXBxyvUNvI4cNi/icPnq9RHwWCbX9U
pSn6nsjcVyHacQeHEza8pC5MnFDC8tTTy3rCpWe2LKSp3X6gE4vKRiLFbXAZshrt
k8wKiRuDuiNhxUyYcVs3s5+Il8Y9yu/kGkY6U15SizO+o224kfOHL6W9Ut4l2xY7
aRZLWhqjyihlaHSLFEiLkR9fPMVDTOF6j/g2fFAjNePw6+9YVbVq0PQF1cY0ew6w
MNvu7cVLZo+xz5toebOH4wIDAQABo4IBHjCCARowFAYDVR0RBA0wC4IJbG9jYWxo
b3N0MBEGCWCGSAGG+EIBAQ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