[XL] Change in onomondo-eim[master]: contrib/sample_ssl_certs: add scripts to generate SSL certificates
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/onomondo-eim/+/44033?usp=email ) Change subject: contrib/sample_ssl_certs: add scripts to generate SSL certificates ...................................................................... contrib/sample_ssl_certs: add scripts to generate SSL certificates The SSL certificates used so far use RSA, this works technically so far, but it is not spec compliant (see also GSMA SGP.32, section 2.6.3.2). Let's add new certificates and include scripts to allow users to re-generate the certificates. Related: SYS#8287 Change-Id: Ie75293e5177ccacc45e11d85ef526159e999b7bb --- M config/sys.config M config/sys.dev.config D contrib/sample_ssl_cert.cabundle A contrib/sample_ssl_cert/ca_brainpool/pki/ca.crt A contrib/sample_ssl_cert/ca_brainpool/pki/certs_by_serial/4387F5724569508A183B85385B97629A.pem A contrib/sample_ssl_cert/ca_brainpool/pki/index.txt A contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.attr A contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.old A contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/README.inline.private A contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/sample_ssl_cert_brainpool.inline A contrib/sample_ssl_cert/ca_brainpool/pki/issued/sample_ssl_cert_brainpool.crt A contrib/sample_ssl_cert/ca_brainpool/pki/private/ca.key A contrib/sample_ssl_cert/ca_brainpool/pki/private/sample_ssl_cert_brainpool.key A contrib/sample_ssl_cert/ca_brainpool/pki/reqs/sample_ssl_cert_brainpool.req A contrib/sample_ssl_cert/ca_brainpool/pki/serial A contrib/sample_ssl_cert/ca_brainpool/pki/serial.old A contrib/sample_ssl_cert/ca_brainpool/pki/vars A contrib/sample_ssl_cert/ca_brainpool/pki/vars.example A contrib/sample_ssl_cert/ca_nist/pki/ca.crt A contrib/sample_ssl_cert/ca_nist/pki/certs_by_serial/5D16EDAD8E7DBD066792F185C0CC3E9B.pem A contrib/sample_ssl_cert/ca_nist/pki/index.txt A contrib/sample_ssl_cert/ca_nist/pki/index.txt.attr A contrib/sample_ssl_cert/ca_nist/pki/index.txt.old A contrib/sample_ssl_cert/ca_nist/pki/inline/private/README.inline.private A contrib/sample_ssl_cert/ca_nist/pki/inline/private/sample_ssl_cert_nist.inline A contrib/sample_ssl_cert/ca_nist/pki/issued/sample_ssl_cert_nist.crt A contrib/sample_ssl_cert/ca_nist/pki/private/ca.key A contrib/sample_ssl_cert/ca_nist/pki/private/sample_ssl_cert_nist.key A contrib/sample_ssl_cert/ca_nist/pki/reqs/sample_ssl_cert_nist.req A contrib/sample_ssl_cert/ca_nist/pki/serial A contrib/sample_ssl_cert/ca_nist/pki/serial.old A contrib/sample_ssl_cert/ca_nist/pki/vars A contrib/sample_ssl_cert/ca_nist/pki/vars.example A contrib/sample_ssl_cert/deploy_certs.sh A contrib/sample_ssl_cert/make_ca.sh A contrib/sample_ssl_cert/make_certs.sh A contrib/sample_ssl_cert/sample_ssl_ca_brainpool.vars A contrib/sample_ssl_cert/sample_ssl_ca_cert_brainpool.crt A contrib/sample_ssl_cert/sample_ssl_ca_cert_nist.crt A contrib/sample_ssl_cert/sample_ssl_ca_nist.vars A contrib/sample_ssl_cert/sample_ssl_cert_brainpool.bundle A contrib/sample_ssl_cert/sample_ssl_cert_brainpool.crt A contrib/sample_ssl_cert/sample_ssl_cert_brainpool.key A contrib/sample_ssl_cert/sample_ssl_cert_nist.bundle A contrib/sample_ssl_cert/sample_ssl_cert_nist.crt A contrib/sample_ssl_cert/sample_ssl_cert_nist.key A priv/sample_ssl_ca_cert_brainpool.crt A priv/sample_ssl_ca_cert_nist.crt D priv/sample_ssl_cert.crt D priv/sample_ssl_cert.key A priv/sample_ssl_cert_brainpool.crt A priv/sample_ssl_cert_brainpool.key A priv/sample_ssl_cert_nist.crt A priv/sample_ssl_cert_nist.key 54 files changed, 2,169 insertions(+), 161 deletions(-) git pull ssh://gerrit.osmocom.org:29418/onomondo-eim refs/changes/33/44033/1 diff --git a/config/sys.config b/config/sys.config index 477d8b3..610eda7 100644 --- a/config/sys.config +++ b/config/sys.config @@ -3,8 +3,8 @@ {esipa_ip, {127, 0, 0, 1}}, {esipa_port, 8000}, {esipa_ssl_disable, false}, - {esipa_ssl_cert, "sample_ssl_cert.crt"}, - {esipa_ssl_key, "sample_ssl_cert.key"}, + {esipa_ssl_cert, "sample_ssl_cert_nist.crt"}, + {esipa_ssl_key, "sample_ssl_cert_nist.key"}, {rest_ip, {127, 0, 0, 1}}, {rest_port, 8080}, {eim_id, "eIM"}, diff --git a/config/sys.dev.config b/config/sys.dev.config index b12c9e7..ea358a1 100644 --- a/config/sys.dev.config +++ b/config/sys.dev.config @@ -3,8 +3,8 @@ {esipa_ip, {127, 0, 0, 1}}, {esipa_port, 8000}, {esipa_ssl_disable, true}, - {esipa_ssl_cert, "sample_ssl_cert.crt"}, - {esipa_ssl_key, "sample_ssl_cert.key"}, + {esipa_ssl_cert, "sample_ssl_cert_nist.crt"}, + {esipa_ssl_key, "sample_ssl_cert_nist.key"}, {rest_ip, {127, 0, 0, 1}}, {rest_port, 8080}, {eim_id, "eIM"}, diff --git a/contrib/sample_ssl_cert.cabundle b/contrib/sample_ssl_cert.cabundle deleted file mode 100644 index c7a4426..0000000 --- a/contrib/sample_ssl_cert.cabundle +++ /dev/null @@ -1,42 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDdDCCAlygAwIBAgIRAPrucayc+FuATc5L01f4MgkwDQYJKoZIhvcNAQELBQAw -FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjQwNDI1MTUzNDE4WhgPMzAyMzA4 -MjcxNTM0MThaMBIxEDAOBgNVBAMMB2FsdHRlc3QwggEiMA0GCSqGSIb3DQEBAQUA -A4IBDwAwggEKAoIBAQCU9n4rQe4A1vUvVGb0QTlp7mQLFUZZzgC2vyqq9w51xOWh -t7OGHCQG+pFB8QuHOu4mJyhiHaw1VOWjrEinmqq+LmBSfN7PwygRQldSnUQkj7C2 -+zbvT6p+LFdeB4oD/BgD6FhriJiok6xpAbGc7zv+BEeeKOLGFflc394kHi+k4LIB -lH64AHaw3TZVIvItOsex2Gd+yi0iuNydhzQMwRHHciu47RvYdW0NSeH2vxLdGYSH -Lm3GfX5CMyoFov9dBxCDpMA1qfgAlimfvFNsgRh75MZBVH8So1p3yw/PUoyDmjAD -yndlssALAGeGUHex9Xm3IGIl+DvKzcTa0cCB/duLAgMBAAGjgb4wgbswCQYDVR0T -BAIwADAdBgNVHQ4EFgQUBC6gaADX29Plc5P8HOUweNFbJOgwUQYDVR0jBEowSIAU -20uplSytBZ/PyDzeOywngdcoZUihGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENB -ghRmMucVriDi12sOO6NQwSVaRWkUoDATBgNVHSUEDDAKBggrBgEFBQcDATALBgNV -HQ8EBAMCBaAwGgYDVR0RBBMwEYIJbG9jYWxob3N0hwR/AAABMA0GCSqGSIb3DQEB -CwUAA4IBAQBBNV5+FEaWPsmO/oj41gdri7eOAsRjl3nsSkbMck16zJsT2Wtc+bW2 -yATP+eAjsk7ssICFhL6pHY1OiyYJ0VCD36LWzOyMNrDEqcsUui3i85Oa5a7+prc3 -whdSF7LzTjoEiJtQfsVzb2NcqzJHDRy0Y9TewGvO7CaNjECDwcIpSPgPobH5XiuR -+w0yJttz7zYD0SQ+WY05CSlhhWRpvu7sbd1tfJMitUQZ7RH1Rn31vnTORoVdJJ9O -uCdLf7pyXPckELZ7+8ug0Vlb01/po+n9wzYvtrXr5h2bcdZTJpUmZBQlR7g71Ja+ -UZjlTc9HZuj86bzmbCvmh9jLZILYYzHJ ------END CERTIFICATE----- - ------BEGIN CERTIFICATE----- -MIIDTTCCAjWgAwIBAgIUZjLnFa4g4tdrDjujUMElWkVpFKAwDQYJKoZIhvcNAQEL -BQAwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjQwNDI1MTUzMzU2WhgPMzAy -MzA4MjcxNTMzNTZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMIIBIjANBgkqhkiG -9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnR8Y1ESTRhfjVNZ0+nuhQsvkMhZnOMpaEoJz -pCzHV0Cj6Mi814gPanvflAX/9F+4IjQ2evm7pNKNUpt1vf6kKTmco0EX672spP4p -8KOQaki/+I/AMYCwAGOvmCMYpHMzNTkV9PZIUUyzLG5YaigiMtJpWY+ji/G+kxAg -YzPr4WhTjG+mEoPjfc9LQH5dh/dP0cdkoZuIHWx6kFxAw/Okb1EF/oGrUT4pOLzg -/Z5wkOYZhlK0bicCqvYfsUjJ4y0ftCXfjQUtAYfQ4gq6revQ7eHCNKixh+BB8yXO -7/z6qrTfMTmN2Ekdo5nAyAMOeugaExaSLwYti3afX71RuqrtTwIDAQABo4GQMIGN -MAwGA1UdEwQFMAMBAf8wHQYDVR0OBBYEFNtLqZUsrQWfz8g83jssJ4HXKGVIMFEG -A1UdIwRKMEiAFNtLqZUsrQWfz8g83jssJ4HXKGVIoRqkGDAWMRQwEgYDVQQDDAtF -YXN5LVJTQSBDQYIUZjLnFa4g4tdrDjujUMElWkVpFKAwCwYDVR0PBAQDAgEGMA0G -CSqGSIb3DQEBCwUAA4IBAQAADFdB7R2mwfMWj3vUR77v9f3wqJdKgUyleXGKu6ot -9YL8vYAJUL9sojZ8KeR47PDVpOs7v0Ll3RcfqRrDWQ9/MiMqSMcxh/i9dvyf5d9s -o2kxqiPaMVPkLzGKE04I0XtAlszqOBYsGO83D2FuJsIWglvvOjNYvJ05LMVJObnq -gpwY3TwhoKeWAQg6U5Yv6dLDjvbYPTwgArNpY97BxY0GZNyiyJgyag21cVui+tsd -uLKVKhmW/EhCC52wsEMwLAsiOjNpVXwAkPWaWAbUJIJTyuc2ZFpx9D2T40H1U8Pj -6UXwCkZ7C9qwKKyusG8duf/Xsdsft3Pm8XykSWWya6Um ------END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/ca.crt b/contrib/sample_ssl_cert/ca_brainpool/pki/ca.crt new file mode 100644 index 0000000..108b24b --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/ca.crt @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBwTCCAWigAwIBAgIUf5gUzIMEpFhOB2rcskJkXY84w2UwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFowFAYHKoZIzj0CAQYJ +KyQDAwIIAQEHA0IABIUANIXkvAYaqoxqJinzgsspJLyPDpHFhW0pPD5CFrukEd4g +NEvdcVPHDLfp9OuMLdViT2pnHANbHGAAQwA8/46jgZAwgY0wDAYDVR0TBAUwAwEB +/zAdBgNVHQ4EFgQU2cTneFMWEN5KrzWIpmWfl7Y5EqAwUQYDVR0jBEowSIAU2cTn +eFMWEN5KrzWIpmWfl7Y5EqChGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghR/ +mBTMgwSkWE4HatyyQmRdjzjDZTALBgNVHQ8EBAMCAQYwCgYIKoZIzj0EAwIDRwAw +RAIgcnSvdjMPbm/t5bHu8+GXEJU2T6hfGl7H5dfl4XXwijECIASj9eiYKOgWtpGO +ZiDYOlZ8ryuFODC2mEf7hH2XWQ9z +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/certs_by_serial/4387F5724569508A183B85385B97629A.pem b/contrib/sample_ssl_cert/ca_brainpool/pki/certs_by_serial/4387F5724569508A183B85385B97629A.pem new file mode 100644 index 0000000..cc74561 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/certs_by_serial/4387F5724569508A183B85385B97629A.pem @@ -0,0 +1,55 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:87:f5:72:45:69:50:8a:18:3b:85:38:5b:97:62:9a + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_brainpool + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:48:1f:79:cb:e3:73:e9:39:0e:46:05:48:cc:2f: + bd:98:bf:24:6c:99:86:90:87:4c:52:45:b8:e2:c5: + 31:9b:b0:59:99:a8:35:86:db:be:fa:a0:3c:07:3d: + bd:0c:d3:df:48:5c:fb:1a:6b:59:46:a2:fe:55:da: + 59:57:16:a1:57 + ASN1 OID: brainpoolP256r1 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 5B:B4:D4:02:E7:23:58:EE:8C:EE:ED:E6:EB:43:87:12:1D:CE:09:A6 + X509v3 Authority Key Identifier: + keyid:D9:C4:E7:78:53:16:10:DE:4A:AF:35:88:A6:65:9F:97:B6:39:12:A0 + DirName:/CN=Easy-RSA CA + serial:7F:98:14:CC:83:04:A4:58:4E:07:6A:DC:B2:42:64:5D:8F:38:C3:65 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0f:2a:88:54:92:5e:b1:db:a4:28:a4:d1:fb:a9: + e0:68:ed:0c:56:39:b7:9b:15:04:5c:57:4b:6d:81:e4:e9:08: + 02:20:7f:41:e0:34:3f:1b:61:45:42:7d:82:1a:63:c7:85:92: + 0b:11:ba:86:6c:cf:63:c0:a4:fa:bd:46:08:fc:86:bb +-----BEGIN CERTIFICATE----- +MIIB+TCCAaCgAwIBAgIQQ4f1ckVpUIoYO4U4W5dimjAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowJDEiMCAGA1UEAwwZc2FtcGxlX3NzbF9jZXJ0X2JyYWlucG9vbDBaMBQG +ByqGSM49AgEGCSskAwMCCAEBBwNCAARIH3nL43PpOQ5GBUjML72YvyRsmYaQh0xS +RbjixTGbsFmZqDWG2776oDwHPb0M099IXPsaa1lGov5V2llXFqFXo4G+MIG7MAkG +A1UdEwQCMAAwHQYDVR0OBBYEFFu01ALnI1jujO7t5utDhxIdzgmmMFEGA1UdIwRK +MEiAFNnE53hTFhDeSq81iKZln5e2ORKgoRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJT +QSBDQYIUf5gUzIMEpFhOB2rcskJkXY84w2UwEwYDVR0lBAwwCgYIKwYBBQUHAwEw +CwYDVR0PBAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjO +PQQDAgNHADBEAiAPKohUkl6x26QopNH7qeBo7QxWObebFQRcV0ttgeTpCAIgf0Hg +ND8bYUVCfYIaY8eFkgsRuoZsz2PApPq9Rgj8hrs= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt b/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt new file mode 100644 index 0000000..ab64c7f --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt @@ -0,0 +1 @@ +V 30260308155230Z 4387F5724569508A183B85385B97629A unknown /CN=sample_ssl_cert_brainpool diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.attr b/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.attr new file mode 100644 index 0000000..3a7e39e --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.attr @@ -0,0 +1 @@ +unique_subject = no diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.old b/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.old new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/index.txt.old diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/README.inline.private b/contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/README.inline.private new file mode 100644 index 0000000..98e0880 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/README.inline.private @@ -0,0 +1,2 @@ +# Inline files in the 'private' directory contain security keys which +# MUST only be transmitted over a secure connection, such as 'scp'. diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/sample_ssl_cert_brainpool.inline b/contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/sample_ssl_cert_brainpool.inline new file mode 100644 index 0000000..8f98182 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/inline/private/sample_ssl_cert_brainpool.inline @@ -0,0 +1,93 @@ +# Easy-RSA Inline file +# Certificate type: server +# commonName: sample_ssl_cert_brainpool +# SHA256 fingerprint: +# DC:F6:58:DE:B3:C5:2E:E0:A3:BD:B8:AC:62:01:BE:4A:D7:9D:10:2A:3C:4F:38:8F:1F:1B:66:D9:11:82:FB:58 +# Decimal serial number: 89764214037336769725242836090329981594 + +<cert> +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:87:f5:72:45:69:50:8a:18:3b:85:38:5b:97:62:9a + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_brainpool + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:48:1f:79:cb:e3:73:e9:39:0e:46:05:48:cc:2f: + bd:98:bf:24:6c:99:86:90:87:4c:52:45:b8:e2:c5: + 31:9b:b0:59:99:a8:35:86:db:be:fa:a0:3c:07:3d: + bd:0c:d3:df:48:5c:fb:1a:6b:59:46:a2:fe:55:da: + 59:57:16:a1:57 + ASN1 OID: brainpoolP256r1 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 5B:B4:D4:02:E7:23:58:EE:8C:EE:ED:E6:EB:43:87:12:1D:CE:09:A6 + X509v3 Authority Key Identifier: + keyid:D9:C4:E7:78:53:16:10:DE:4A:AF:35:88:A6:65:9F:97:B6:39:12:A0 + DirName:/CN=Easy-RSA CA + serial:7F:98:14:CC:83:04:A4:58:4E:07:6A:DC:B2:42:64:5D:8F:38:C3:65 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0f:2a:88:54:92:5e:b1:db:a4:28:a4:d1:fb:a9: + e0:68:ed:0c:56:39:b7:9b:15:04:5c:57:4b:6d:81:e4:e9:08: + 02:20:7f:41:e0:34:3f:1b:61:45:42:7d:82:1a:63:c7:85:92: + 0b:11:ba:86:6c:cf:63:c0:a4:fa:bd:46:08:fc:86:bb +-----BEGIN CERTIFICATE----- +MIIB+TCCAaCgAwIBAgIQQ4f1ckVpUIoYO4U4W5dimjAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowJDEiMCAGA1UEAwwZc2FtcGxlX3NzbF9jZXJ0X2JyYWlucG9vbDBaMBQG +ByqGSM49AgEGCSskAwMCCAEBBwNCAARIH3nL43PpOQ5GBUjML72YvyRsmYaQh0xS +RbjixTGbsFmZqDWG2776oDwHPb0M099IXPsaa1lGov5V2llXFqFXo4G+MIG7MAkG +A1UdEwQCMAAwHQYDVR0OBBYEFFu01ALnI1jujO7t5utDhxIdzgmmMFEGA1UdIwRK +MEiAFNnE53hTFhDeSq81iKZln5e2ORKgoRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJT +QSBDQYIUf5gUzIMEpFhOB2rcskJkXY84w2UwEwYDVR0lBAwwCgYIKwYBBQUHAwEw +CwYDVR0PBAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjO +PQQDAgNHADBEAiAPKohUkl6x26QopNH7qeBo7QxWObebFQRcV0ttgeTpCAIgf0Hg +ND8bYUVCfYIaY8eFkgsRuoZsz2PApPq9Rgj8hrs= +-----END CERTIFICATE----- +</cert> + +<key> +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBCg0iIq8MTdwzFcdQ1D +fU3BAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQQcjYv+ECC9YaYNPp +k7Li5QSBkBjbJhQgp0U+qBeTQWBa81Q0Aq690O6nIpSqZG5OO2WlUCAPA/CdzGwU +4A3EsdY3Nq3lW3sagiqICFWb4Odf36dgu3tHPl42F12KKbDgATTj2zGyOu/AIgDT +8iCel31NP//cao0ly4r0jjF3zHEqTfexupFJuJRmE2QtGLONgCcyI6PgLb8ritPy +RN1NBk9Lfw== +-----END ENCRYPTED PRIVATE KEY----- +</key> + +<ca> +-----BEGIN CERTIFICATE----- +MIIBwTCCAWigAwIBAgIUf5gUzIMEpFhOB2rcskJkXY84w2UwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFowFAYHKoZIzj0CAQYJ +KyQDAwIIAQEHA0IABIUANIXkvAYaqoxqJinzgsspJLyPDpHFhW0pPD5CFrukEd4g +NEvdcVPHDLfp9OuMLdViT2pnHANbHGAAQwA8/46jgZAwgY0wDAYDVR0TBAUwAwEB +/zAdBgNVHQ4EFgQU2cTneFMWEN5KrzWIpmWfl7Y5EqAwUQYDVR0jBEowSIAU2cTn +eFMWEN5KrzWIpmWfl7Y5EqChGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghR/ +mBTMgwSkWE4HatyyQmRdjzjDZTALBgNVHQ8EBAMCAQYwCgYIKoZIzj0EAwIDRwAw +RAIgcnSvdjMPbm/t5bHu8+GXEJU2T6hfGl7H5dfl4XXwijECIASj9eiYKOgWtpGO +ZiDYOlZ8ryuFODC2mEf7hH2XWQ9z +-----END CERTIFICATE----- +</ca> + +# Easy-RSA TLS Key not found! + diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/issued/sample_ssl_cert_brainpool.crt b/contrib/sample_ssl_cert/ca_brainpool/pki/issued/sample_ssl_cert_brainpool.crt new file mode 100644 index 0000000..cc74561 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/issued/sample_ssl_cert_brainpool.crt @@ -0,0 +1,55 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:87:f5:72:45:69:50:8a:18:3b:85:38:5b:97:62:9a + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_brainpool + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:48:1f:79:cb:e3:73:e9:39:0e:46:05:48:cc:2f: + bd:98:bf:24:6c:99:86:90:87:4c:52:45:b8:e2:c5: + 31:9b:b0:59:99:a8:35:86:db:be:fa:a0:3c:07:3d: + bd:0c:d3:df:48:5c:fb:1a:6b:59:46:a2:fe:55:da: + 59:57:16:a1:57 + ASN1 OID: brainpoolP256r1 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 5B:B4:D4:02:E7:23:58:EE:8C:EE:ED:E6:EB:43:87:12:1D:CE:09:A6 + X509v3 Authority Key Identifier: + keyid:D9:C4:E7:78:53:16:10:DE:4A:AF:35:88:A6:65:9F:97:B6:39:12:A0 + DirName:/CN=Easy-RSA CA + serial:7F:98:14:CC:83:04:A4:58:4E:07:6A:DC:B2:42:64:5D:8F:38:C3:65 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0f:2a:88:54:92:5e:b1:db:a4:28:a4:d1:fb:a9: + e0:68:ed:0c:56:39:b7:9b:15:04:5c:57:4b:6d:81:e4:e9:08: + 02:20:7f:41:e0:34:3f:1b:61:45:42:7d:82:1a:63:c7:85:92: + 0b:11:ba:86:6c:cf:63:c0:a4:fa:bd:46:08:fc:86:bb +-----BEGIN CERTIFICATE----- +MIIB+TCCAaCgAwIBAgIQQ4f1ckVpUIoYO4U4W5dimjAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowJDEiMCAGA1UEAwwZc2FtcGxlX3NzbF9jZXJ0X2JyYWlucG9vbDBaMBQG +ByqGSM49AgEGCSskAwMCCAEBBwNCAARIH3nL43PpOQ5GBUjML72YvyRsmYaQh0xS +RbjixTGbsFmZqDWG2776oDwHPb0M099IXPsaa1lGov5V2llXFqFXo4G+MIG7MAkG +A1UdEwQCMAAwHQYDVR0OBBYEFFu01ALnI1jujO7t5utDhxIdzgmmMFEGA1UdIwRK +MEiAFNnE53hTFhDeSq81iKZln5e2ORKgoRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJT +QSBDQYIUf5gUzIMEpFhOB2rcskJkXY84w2UwEwYDVR0lBAwwCgYIKwYBBQUHAwEw +CwYDVR0PBAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjO +PQQDAgNHADBEAiAPKohUkl6x26QopNH7qeBo7QxWObebFQRcV0ttgeTpCAIgf0Hg +ND8bYUVCfYIaY8eFkgsRuoZsz2PApPq9Rgj8hrs= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/private/ca.key b/contrib/sample_ssl_cert/ca_brainpool/pki/private/ca.key new file mode 100644 index 0000000..9ed1ab5 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/private/ca.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBDdLh1Q/cDjoanBdtT/ +MfdZAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQycKuSWWnx4vXJgU6 +b79t7gSBkP69NE3nmmQzc+QD6A76LT8jTOBML9d2gUeb48FGHzJNhbjhhl4sys0V +XYquu34l2wwu6SSVdU1evreW7YODi3IHwEAviJBiIC3+ilBxMMKYiEjhb63FtIo1 +sGh8cDCK/0RLOD/EpAnfyqp3tk4mCX0bmK50t+ybP2a/LG9Oz6aDrN2V4Mtm/Skv +ty8NeT2NpA== +-----END ENCRYPTED PRIVATE KEY----- diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/private/sample_ssl_cert_brainpool.key b/contrib/sample_ssl_cert/ca_brainpool/pki/private/sample_ssl_cert_brainpool.key new file mode 100644 index 0000000..2350f39 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/private/sample_ssl_cert_brainpool.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBCg0iIq8MTdwzFcdQ1D +fU3BAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQQcjYv+ECC9YaYNPp +k7Li5QSBkBjbJhQgp0U+qBeTQWBa81Q0Aq690O6nIpSqZG5OO2WlUCAPA/CdzGwU +4A3EsdY3Nq3lW3sagiqICFWb4Odf36dgu3tHPl42F12KKbDgATTj2zGyOu/AIgDT +8iCel31NP//cao0ly4r0jjF3zHEqTfexupFJuJRmE2QtGLONgCcyI6PgLb8ritPy +RN1NBk9Lfw== +-----END ENCRYPTED PRIVATE KEY----- diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/reqs/sample_ssl_cert_brainpool.req b/contrib/sample_ssl_cert/ca_brainpool/pki/reqs/sample_ssl_cert_brainpool.req new file mode 100644 index 0000000..9e24e9f --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/reqs/sample_ssl_cert_brainpool.req @@ -0,0 +1,8 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIBDDCBtAIBADAkMSIwIAYDVQQDDBlzYW1wbGVfc3NsX2NlcnRfYnJhaW5wb29s +MFowFAYHKoZIzj0CAQYJKyQDAwIIAQEHA0IABEgfecvjc+k5DkYFSMwvvZi/JGyZ +hpCHTFJFuOLFMZuwWZmoNYbbvvqgPAc9vQzT30hc+xprWUai/lXaWVcWoVegLTAr +BgkqhkiG9w0BCQ4xHjAcMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggq +hkjOPQQDAgNHADBEAiBQDv6VKxVJsqMsPnCODsDo87bdgZtc4AKoQIpBb1y5vAIg +bhTHBhyYruRPSt6RMLKd9b+fYVSNEfkzyGkYNmH5h5I= +-----END CERTIFICATE REQUEST----- diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/serial b/contrib/sample_ssl_cert/ca_brainpool/pki/serial new file mode 100644 index 0000000..5cbe184 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/serial @@ -0,0 +1 @@ +4387F5724569508A183B85385B97629B diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/serial.old b/contrib/sample_ssl_cert/ca_brainpool/pki/serial.old new file mode 100644 index 0000000..ee954ca --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/serial.old @@ -0,0 +1 @@ +4387f5724569508a183b85385b97629a diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/vars b/contrib/sample_ssl_cert/ca_brainpool/pki/vars new file mode 100644 index 0000000..c65ebbb --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/vars @@ -0,0 +1,235 @@ +# Easy-RSA 3 parameter settings + +# NOTE: If you installed Easy-RSA from your package manager, do not edit +# this file in place -- instead, you should copy the entire easy-rsa directory +# to another location so future upgrades do not wipe out your changes. + +# HOW TO USE THIS FILE +# +# vars.example contains built-in examples to Easy-RSA settings. You MUST name +# this file "vars" if you want it to be used as a configuration file. If you do +# not, it WILL NOT be automatically read when you call easyrsa commands. +# +# It is not necessary to use this config file unless you wish to change +# operational defaults. These defaults should be fine for many uses without the +# need to copy and edit the "vars" file. +# +# All of the editable settings are shown commented and start with the command +# "set_var" -- this means any set_var command that is uncommented has been +# modified by the user. If you are happy with a default, there is no need to +# define the value to its default. + +# NOTES FOR WINDOWS USERS +# +# Paths for Windows *MUST* use forward slashes, or optionally double-escaped +# backslashes (single forward slashes are recommended.) This means your path to +# the openssl binary might look like this: +# "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# A little housekeeping: DO NOT EDIT THIS SECTION +# +# Easy-RSA 3.x does not source into the environment directly. +# Complain if a user tries to do this: +if [ -z "$EASYRSA_CALLER" ]; then + echo "You appear to be sourcing an Easy-RSA *vars* file." >&2 + echo "This is no longer necessary and is disallowed. See the section called" >&2 + echo "*How to use this file* near the top comments for more details." >&2 + return 1 +fi + +# DO YOUR EDITS BELOW THIS POINT + +# This variable is used as the base location of configuration files needed by +# easyrsa. More specific variables for specific files (e.g., EASYRSA_SSL_CONF) +# may override this default. +# +# The default value of this variable is the location of the easyrsa script +# itself, which is also where the configuration files are located in the +# easy-rsa tree. + +#set_var EASYRSA "${0%/*}" + +# If your OpenSSL command is not in the system PATH, you will need to define the +# path to it here. Normally this means a full path to the executable, otherwise +# you could have left it undefined here and the shown default would be used. +# +# Windows users, remember to use paths with forward-slashes (or escaped +# back-slashes.) Windows users should declare the full path to the openssl +# binary here if it is not in their system PATH. + +#set_var EASYRSA_OPENSSL "openssl" +# +# This sample is in Windows syntax -- edit it for your path if not using PATH: +#set_var EASYRSA_OPENSSL "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# Edit this variable to point to your soon-to-be-created key directory. By +# default, this will be "$PWD/pki" (i.e. the "pki" subdirectory of the +# directory you are currently in). +# +# WARNING: init-pki will do a rm -rf on this directory so make sure you define +# it correctly! (Interactive mode will prompt before acting.) + +#set_var EASYRSA_PKI "$PWD/pki" + +# Define directory for temporary subdirectories. + +#set_var EASYRSA_TEMP_DIR "$EASYRSA_PKI" + +# Define X509 DN mode. +# This is used to adjust what elements are included in the Subject field as the DN +# (this is the "Distinguished Name.") +# Note that in cn_only mode the Organizational fields further below are not used. +# +# Choices are: +# cn_only - use just a CN value +# org - use the "traditional" Country/Province/City/Org/OU/email/CN format + +#set_var EASYRSA_DN "cn_only" + +# Organizational fields (used with "org" mode and ignored in "cn_only" mode.) +# These are the default values for fields which will be placed in the +# certificate. Do not leave any of these fields blank, although interactively +# you may omit any specific field by typing the "." symbol (not valid for +# email.) + +# NOTE: The following characters are not supported +# in these "Organizational fields" by Easy-RSA: +# single quote (') +# back-tick (`) +# hash (#) +# ampersand (&) +# dollar sign ($) +# Use them at your own risk! + +#set_var EASYRSA_REQ_COUNTRY "US" +#set_var EASYRSA_REQ_PROVINCE "California" +#set_var EASYRSA_REQ_CITY "San Francisco" +#set_var EASYRSA_REQ_ORG "Copyleft Certificate Co" +#set_var EASYRSA_REQ_EMAIL "me@example.net" +#set_var EASYRSA_REQ_OU "My Organizational Unit" + +# Choose a size in bits for your keypairs. The recommended value is 2048. Using +# 2048-bit keys is considered more than sufficient for many years into the +# future. Larger keysizes will slow down TLS negotiation and make key/DH param +# generation take much longer. Values up to 4096 should be accepted by most +# software. Only used when the crypto alg is rsa (see below.) + +#set_var EASYRSA_KEY_SIZE 2048 + +# The default crypto mode is rsa; ec can enable elliptic curve support. +# Note that not all software supports ECC, so use care when enabling it. +# Choices for crypto alg are: (each in lower-case) +# * rsa +# * ec +# * ed + +set_var EASYRSA_ALGO ec + +# Define the named curve, used in ec & ed modes: + +set_var EASYRSA_CURVE brainpoolP256r1 + +# In how many days should the root CA key expire? + +set_var EASYRSA_CA_EXPIRE 365000 + +# In how many days should certificates expire? + +set_var EASYRSA_CERT_EXPIRE 365000 + +# How many days until the next CRL publish date? Note that the CRL can still be +# parsed after this timeframe passes. It is only used for an expected next +# publication date. +#set_var EASYRSA_CRL_DAYS 180 + +# How many days before its expiration date a certificate is allowed to be +# renewed? +#set_var EASYRSA_CERT_RENEW 30 + +# For fixed certificate start/end dates - Range 1..365 +# If set here then command line option is always in effect. +# The day number 183 is either July 2nd or 3rd (leap-year) +# Replace with your chosen day-of-year value: +#set_var EASYRSA_FIX_OFFSET 183 + +# Random serial numbers by default, set to no for the old incremental serial numbers +# +#set_var EASYRSA_RAND_SN "yes" + +# Support deprecated "Netscape" extensions? (choices "yes" or "no".) The default +# is "no" to discourage use of deprecated extensions. If you require this +# feature to use with --ns-cert-type, set this to "yes" here. This support +# should be replaced with the more modern --remote-cert-tls feature. If you do +# not use --ns-cert-type in your configs, it is safe (and recommended) to leave +# this defined to "no". When set to "yes", server-signed certs get the +# nsCertType=server attribute, and also get any NS_COMMENT defined below in the +# nsComment field. + +#set_var EASYRSA_NS_SUPPORT "no" + +# When NS_SUPPORT is set to "yes", this field is added as the nsComment field. +# Set this blank to omit it. With NS_SUPPORT set to "no" this field is ignored. + +#set_var EASYRSA_NS_COMMENT "Easy-RSA Generated Certificate" + +# A temp file used to stage cert extensions during signing. The default should +# be fine for most users; however, some users might want an alternative under a +# RAM-based FS, such as /dev/shm or /tmp on some systems. + +#set_var EASYRSA_TEMP_FILE "$EASYRSA_PKI/extensions.temp" + +# !! +# NOTE: ADVANCED OPTIONS BELOW THIS POINT +# PLAY WITH THEM AT YOUR OWN RISK +# !! + +# Broken shell command aliases: If you have a largely broken shell that is +# missing any of these POSIX-required commands used by Easy-RSA, you will need +# to define an alias to the proper path for the command. The symptom will be +# some form of a "command not found" error from your shell. This means your +# shell is BROKEN, but you can hack around it here if you really need. These +# shown values are not defaults: it is up to you to know what you are doing if +# you touch these. +# +#alias awk="/alt/bin/awk" +#alias cat="/alt/bin/cat" + +# X509 extensions directory: +# If you want to customize the X509 extensions used, set the directory to look +# for extensions here. Each cert type you sign must have a matching filename, +# and an optional file named "COMMON" is included first when present. Note that +# when undefined here, default behaviour is to look in $EASYRSA_PKI first, then +# fallback to $EASYRSA for the "x509-types" dir. You may override this +# detection with an explicit dir here. +# +#set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types" + +# If you want to generate KDC certificates, you need to set the realm here. +#set_var EASYRSA_KDC_REALM "CHANGEME.EXAMPLE.COM" + +# OpenSSL config file: +# If you need to use a specific openssl config file, you can reference it here. +# Normally this file is auto-detected from a file named openssl-easyrsa.cnf from the +# EASYRSA_PKI or EASYRSA dir (in that order.) NOTE that this file is Easy-RSA +# specific and you cannot just use a standard config file, so this is an +# advanced feature. + +#set_var EASYRSA_SSL_CONF "$EASYRSA_PKI/openssl-easyrsa.cnf" + +# Default CN: +# This is best left alone. Interactively you will set this manually, and BATCH +# callers are expected to set this themselves. + +#set_var EASYRSA_REQ_CN "ChangeMe" + +# Cryptographic digest to use. +# Do not change this default unless you understand the security implications. +# Valid choices include: md5, sha1, sha256, sha224, sha384, sha512 + +#set_var EASYRSA_DIGEST "sha256" + +# Batch mode. Leave this disabled unless you intend to call Easy-RSA explicitly +# in batch mode without any user input, confirmation on dangerous operations, +# or most output. Setting this to any non-blank string enables batch mode. + +#set_var EASYRSA_BATCH "" diff --git a/contrib/sample_ssl_cert/ca_brainpool/pki/vars.example b/contrib/sample_ssl_cert/ca_brainpool/pki/vars.example new file mode 100644 index 0000000..85978f0 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_brainpool/pki/vars.example @@ -0,0 +1,162 @@ +# Easy-RSA 3 parameter settings + +# NOTE: If you installed Easy-RSA from your package manager, do not edit +# this file in place -- instead, you should copy the entire easy-rsa directory +# to another location so future upgrades do not wipe out your changes. + +# HOW TO USE THIS FILE +# +# vars.example contains built-in examples to Easy-RSA settings. You MUST name +# this file "vars" if you want it to be used as a configuration file. If you +# do not, it WILL NOT be automatically read when you call easyrsa commands. +# +# It is not necessary to use this config file unless you wish to change +# operational defaults. These defaults should be fine for many uses without +# the need to copy and edit the "vars" file. +# +# All of the editable settings are shown commented and start with the command +# "set_var" -- this means any set_var command that is uncommented has been +# modified by the user. If you are happy with a default, there is no need to +# define the value to its default. + +# NOTES FOR WINDOWS USERS +# +# Paths for Windows *MUST* use forward slashes, or optionally double-escaped +# backslashes (single forward slashes are recommended.) This means your path +# to the openssl binary might look like this: +# "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# A little housekeeping: DO NOT EDIT THIS SECTION +# +# Easy-RSA 3.x does not source into the environment directly. +# Complain if a user tries to do this: +if [ -z "$EASYRSA_CALLER" ]; then + echo "You appear to be sourcing an Easy-RSA *vars* file. This is" >&2 + echo "no longer necessary and is disallowed. See the section called" >&2 + echo "*How to use this file* near the top comments for more details." >&2 + return 1 +fi + +# DO YOUR EDITS BELOW THIS POINT + +# If your OpenSSL command is not in the system PATH, you will need to define +# the path here. Normally this means a full path to the executable, otherwise +# you could have left it undefined here and the shown default would be used. +# +# Windows users, remember to use paths with forward-slashes (or escaped +# back-slashes.) Windows users should declare the full path to the openssl +# binary here if it is not in their system PATH. +# +#set_var EASYRSA_OPENSSL "openssl" +# +# This sample is in Windows syntax -- edit it for your path if not using PATH: +#set_var EASYRSA_OPENSSL "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# Windows users, to generate OpenVPN TLS Keys the Openvpn binary must be +# defined here. +# +#set_var EASYRSA_OPENVPN "C:\\Program Files\\Openvpn\\bin\\openvpn.exe" + +# Define X509 DN mode. +# +# This is used to adjust which elements are included in the Subject field +# as the DN ("Distinguished Name"). Note that in 'cn_only' mode the +# Organizational fields, listed further below, are not used. +# +# Choices are: +# cn_only - Use just a commonName value. +# org - Use the "traditional" format: +# Country/Province/City/Org/Org.Unit/email/commonName +# +#set_var EASYRSA_DN "cn_only" + +# Organizational fields (used with "org" mode and ignored in "cn_only" mode). +# These are the default values for fields which will be placed in the +# certificate. Do not leave any of these fields blank, although interactively +# you may omit any specific field by typing the "." symbol (not valid for +# email). +# +# NOTE: The following characters are not supported +# in these "Organizational fields" by Easy-RSA: +# back-tick (`) +# +#set_var EASYRSA_REQ_COUNTRY "US" +#set_var EASYRSA_REQ_PROVINCE "California" +#set_var EASYRSA_REQ_CITY "San Francisco" +#set_var EASYRSA_REQ_ORG "Copyleft Certificate Co" +#set_var EASYRSA_REQ_EMAIL "me@example.net" +#set_var EASYRSA_REQ_OU "My Organizational Unit" + +# Preserve the Distinguished Name field order +# of the certificate signing request +# *Only* effective in --dn-mode=org +# +#set_var EASYRSA_PRESERVE_DN 1 + +# Set no password mode - This will create the entire PKI without passwords. +# This can be better managed by choosing which entity private keys should be +# encrypted with the following command line options: +# Global option '--no-pass' or command option 'nopass'. +# +#set_var EASYRSA_NO_PASS 1 + +# Choose a size in bits for your keypairs. The recommended value is 2048. +# Using 2048-bit keys is considered more than sufficient for many years into +# the future. Larger keysizes will slow down TLS negotiation and make key/DH +# param generation take much longer. Values up to 4096 should be accepted by +# most software. Only used when the crypto alg is rsa, see below. +# +#set_var EASYRSA_KEY_SIZE 2048 + +# The default crypto mode is rsa; ec can enable elliptic curve support. +# Note that not all software supports ECC, so use care when enabling it. +# Choices for crypto alg are: (each in lower-case) +# * rsa +# * ec +# * ed +# +#set_var EASYRSA_ALGO rsa + +# Define the named curve, used in ec & ed modes: +# +#set_var EASYRSA_CURVE secp384r1 + +# In how many days should the root CA key expire? +# +#set_var EASYRSA_CA_EXPIRE 3650 + +# In how many days should certificates expire? +# +#set_var EASYRSA_CERT_EXPIRE 825 + +# How many days until the Certificate Revokation List will expire. +# +# IMPORTANT: When the CRL expires, an OpenVPN Server which uses a +# CRL will reject ALL new connections, until the CRL is replaced. +# +#set_var EASYRSA_CRL_DAYS 180 + +# Random serial numbers by default. +# Set to 'no' for the old incremental serial numbers. +# +#set_var EASYRSA_RAND_SN "yes" + +# Cut-off window for checking expiring certificates. +# +#set_var EASYRSA_PRE_EXPIRY_WINDOW 90 + +# Generate automatic subjectAltName for certificates +# +#set_var EASYRSA_AUTO_SAN 1 + +# Add critical attribute to X509 fields: basicConstraints (BC), +# keyUsage (KU), extendedKeyUsage (EKU) or SAN +# +#set_var EASYRSA_BC_CRIT 1 +#set_var EASYRSA_KU_CRIT 1 +#set_var EASYRSA_EKU_CRIT 1 +#set_var EASYRSA_SAN_CRIT 1 + +# Disable automatic inline files +# +#set_var EASYRSA_DISABLE_INLINE 1 diff --git a/contrib/sample_ssl_cert/ca_nist/pki/ca.crt b/contrib/sample_ssl_cert/ca_nist/pki/ca.crt new file mode 100644 index 0000000..dc36202 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/ca.crt @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBwDCCAWegAwIBAgIUL7pPVxTVI50/CBJbsVj473+i7aAwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFkwEwYHKoZIzj0CAQYI +KoZIzj0DAQcDQgAEDa6R9/Q3rfxv20SDUGeolx30iGdwf9C6dnaLHIv4B/ZLEXmY +eyXryf17iWsB6+nhdsb8TbALKnI2cy2SKteYgKOBkDCBjTAMBgNVHRMEBTADAQH/ +MB0GA1UdDgQWBBTxXVYCsHhW51huLYvBNP2qmGgKkzBRBgNVHSMESjBIgBTxXVYC +sHhW51huLYvBNP2qmGgKk6EapBgwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0GCFC+6 +T1cU1SOdPwgSW7FY+O9/ou2gMAsGA1UdDwQEAwIBBjAKBggqhkjOPQQDAgNHADBE +AiB6Xzx/88R329Qyi8sfnLi6kcGVWDAyppYSzSqR5EbnpAIgS1tgZ2TdSz6+6qU1 +g1FJMWdPb69N29C7v9CamUCp+X8= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/ca_nist/pki/certs_by_serial/5D16EDAD8E7DBD066792F185C0CC3E9B.pem b/contrib/sample_ssl_cert/ca_nist/pki/certs_by_serial/5D16EDAD8E7DBD066792F185C0CC3E9B.pem new file mode 100644 index 0000000..4be90de --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/certs_by_serial/5D16EDAD8E7DBD066792F185C0CC3E9B.pem @@ -0,0 +1,56 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 5d:16:ed:ad:8e:7d:bd:06:67:92:f1:85:c0:cc:3e:9b + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_nist + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:f9:22:e2:f6:39:e6:89:24:54:83:e9:c0:52:3b: + 99:c7:a9:41:8f:b1:ea:d2:63:f4:1d:a1:66:a8:f2: + 29:64:b2:32:b5:85:d3:52:1f:36:5c:cd:db:56:9e: + 5c:2d:ac:84:11:65:28:7c:ed:e0:89:3a:e2:23:0d: + 89:94:b2:08:6a + ASN1 OID: prime256v1 + NIST CURVE: P-256 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 65:E0:C8:3D:92:BC:CA:96:87:E3:A8:A7:98:5D:E3:36:8F:85:38:A3 + X509v3 Authority Key Identifier: + keyid:F1:5D:56:02:B0:78:56:E7:58:6E:2D:8B:C1:34:FD:AA:98:68:0A:93 + DirName:/CN=Easy-RSA CA + serial:2F:BA:4F:57:14:D5:23:9D:3F:08:12:5B:B1:58:F8:EF:7F:A2:ED:A0 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0d:6e:56:23:6d:2a:65:ea:ba:72:5a:ed:2b:1c: + cd:8a:e7:b9:47:1d:02:b3:c4:9e:fd:04:e1:4d:5d:5c:c5:60: + 02:20:79:30:1b:85:3b:c5:5e:16:03:c9:26:23:a5:31:17:fe: + 7f:27:76:36:db:7d:0f:58:ea:0c:d4:59:3c:b5:4f:e5 +-----BEGIN CERTIFICATE----- +MIIB8zCCAZqgAwIBAgIQXRbtrY59vQZnkvGFwMw+mzAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowHzEdMBsGA1UEAwwUc2FtcGxlX3NzbF9jZXJ0X25pc3QwWTATBgcqhkjO +PQIBBggqhkjOPQMBBwNCAAT5IuL2OeaJJFSD6cBSO5nHqUGPserSY/QdoWao8ilk +sjK1hdNSHzZczdtWnlwtrIQRZSh87eCJOuIjDYmUsghqo4G+MIG7MAkGA1UdEwQC +MAAwHQYDVR0OBBYEFGXgyD2SvMqWh+Oop5hd4zaPhTijMFEGA1UdIwRKMEiAFPFd +VgKweFbnWG4ti8E0/aqYaAqToRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQYIU +L7pPVxTVI50/CBJbsVj473+i7aAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0P +BAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjOPQQDAgNH +ADBEAiANblYjbSpl6rpyWu0rHM2K57lHHQKzxJ79BOFNXVzFYAIgeTAbhTvFXhYD +ySYjpTEX/n8ndjbbfQ9Y6gzUWTy1T+U= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/ca_nist/pki/index.txt b/contrib/sample_ssl_cert/ca_nist/pki/index.txt new file mode 100644 index 0000000..80c9284 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/index.txt @@ -0,0 +1 @@ +V 30260308155230Z 5D16EDAD8E7DBD066792F185C0CC3E9B unknown /CN=sample_ssl_cert_nist diff --git a/contrib/sample_ssl_cert/ca_nist/pki/index.txt.attr b/contrib/sample_ssl_cert/ca_nist/pki/index.txt.attr new file mode 100644 index 0000000..3a7e39e --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/index.txt.attr @@ -0,0 +1 @@ +unique_subject = no diff --git a/contrib/sample_ssl_cert/ca_nist/pki/index.txt.old b/contrib/sample_ssl_cert/ca_nist/pki/index.txt.old new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/index.txt.old diff --git a/contrib/sample_ssl_cert/ca_nist/pki/inline/private/README.inline.private b/contrib/sample_ssl_cert/ca_nist/pki/inline/private/README.inline.private new file mode 100644 index 0000000..98e0880 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/inline/private/README.inline.private @@ -0,0 +1,2 @@ +# Inline files in the 'private' directory contain security keys which +# MUST only be transmitted over a secure connection, such as 'scp'. diff --git a/contrib/sample_ssl_cert/ca_nist/pki/inline/private/sample_ssl_cert_nist.inline b/contrib/sample_ssl_cert/ca_nist/pki/inline/private/sample_ssl_cert_nist.inline new file mode 100644 index 0000000..3018af0 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/inline/private/sample_ssl_cert_nist.inline @@ -0,0 +1,94 @@ +# Easy-RSA Inline file +# Certificate type: server +# commonName: sample_ssl_cert_nist +# SHA256 fingerprint: +# 2A:54:18:ED:DF:A6:19:D2:B3:9D:F3:2D:E0:AF:E5:F1:23:0D:D0:2E:E3:13:9A:BD:27:C8:89:DC:BC:7B:29:4A +# Decimal serial number: 123737254820532002568994455007206850203 + +<cert> +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 5d:16:ed:ad:8e:7d:bd:06:67:92:f1:85:c0:cc:3e:9b + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_nist + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:f9:22:e2:f6:39:e6:89:24:54:83:e9:c0:52:3b: + 99:c7:a9:41:8f:b1:ea:d2:63:f4:1d:a1:66:a8:f2: + 29:64:b2:32:b5:85:d3:52:1f:36:5c:cd:db:56:9e: + 5c:2d:ac:84:11:65:28:7c:ed:e0:89:3a:e2:23:0d: + 89:94:b2:08:6a + ASN1 OID: prime256v1 + NIST CURVE: P-256 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 65:E0:C8:3D:92:BC:CA:96:87:E3:A8:A7:98:5D:E3:36:8F:85:38:A3 + X509v3 Authority Key Identifier: + keyid:F1:5D:56:02:B0:78:56:E7:58:6E:2D:8B:C1:34:FD:AA:98:68:0A:93 + DirName:/CN=Easy-RSA CA + serial:2F:BA:4F:57:14:D5:23:9D:3F:08:12:5B:B1:58:F8:EF:7F:A2:ED:A0 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0d:6e:56:23:6d:2a:65:ea:ba:72:5a:ed:2b:1c: + cd:8a:e7:b9:47:1d:02:b3:c4:9e:fd:04:e1:4d:5d:5c:c5:60: + 02:20:79:30:1b:85:3b:c5:5e:16:03:c9:26:23:a5:31:17:fe: + 7f:27:76:36:db:7d:0f:58:ea:0c:d4:59:3c:b5:4f:e5 +-----BEGIN CERTIFICATE----- +MIIB8zCCAZqgAwIBAgIQXRbtrY59vQZnkvGFwMw+mzAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowHzEdMBsGA1UEAwwUc2FtcGxlX3NzbF9jZXJ0X25pc3QwWTATBgcqhkjO +PQIBBggqhkjOPQMBBwNCAAT5IuL2OeaJJFSD6cBSO5nHqUGPserSY/QdoWao8ilk +sjK1hdNSHzZczdtWnlwtrIQRZSh87eCJOuIjDYmUsghqo4G+MIG7MAkGA1UdEwQC +MAAwHQYDVR0OBBYEFGXgyD2SvMqWh+Oop5hd4zaPhTijMFEGA1UdIwRKMEiAFPFd +VgKweFbnWG4ti8E0/aqYaAqToRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQYIU +L7pPVxTVI50/CBJbsVj473+i7aAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0P +BAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjOPQQDAgNH +ADBEAiANblYjbSpl6rpyWu0rHM2K57lHHQKzxJ79BOFNXVzFYAIgeTAbhTvFXhYD +ySYjpTEX/n8ndjbbfQ9Y6gzUWTy1T+U= +-----END CERTIFICATE----- +</cert> + +<key> +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBA3sgZkchLxGQjPJ1zR +NB0YAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQ4v44Jsn5XLAskeV+ +oVuHcgSBkPY+rIAo2hMFakx5494XiMSfc301ef63TQR+X2NjFpCsi5GPrcw8f12D +ner42rmIzbmkZ9vvSbMfXrvOfV7cocY3/qhPEyz9RXeZqcr9Dlwd/sIxhPcKK4Yj +zARGmDCpNvcK83syfO90seSIOkj6fRCRJaC9dkcLOunbt4+pYwoLLrISh+vm40PX +cInen8A9Kw== +-----END ENCRYPTED PRIVATE KEY----- +</key> + +<ca> +-----BEGIN CERTIFICATE----- +MIIBwDCCAWegAwIBAgIUL7pPVxTVI50/CBJbsVj473+i7aAwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFkwEwYHKoZIzj0CAQYI +KoZIzj0DAQcDQgAEDa6R9/Q3rfxv20SDUGeolx30iGdwf9C6dnaLHIv4B/ZLEXmY +eyXryf17iWsB6+nhdsb8TbALKnI2cy2SKteYgKOBkDCBjTAMBgNVHRMEBTADAQH/ +MB0GA1UdDgQWBBTxXVYCsHhW51huLYvBNP2qmGgKkzBRBgNVHSMESjBIgBTxXVYC +sHhW51huLYvBNP2qmGgKk6EapBgwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0GCFC+6 +T1cU1SOdPwgSW7FY+O9/ou2gMAsGA1UdDwQEAwIBBjAKBggqhkjOPQQDAgNHADBE +AiB6Xzx/88R329Qyi8sfnLi6kcGVWDAyppYSzSqR5EbnpAIgS1tgZ2TdSz6+6qU1 +g1FJMWdPb69N29C7v9CamUCp+X8= +-----END CERTIFICATE----- +</ca> + +# Easy-RSA TLS Key not found! + diff --git a/contrib/sample_ssl_cert/ca_nist/pki/issued/sample_ssl_cert_nist.crt b/contrib/sample_ssl_cert/ca_nist/pki/issued/sample_ssl_cert_nist.crt new file mode 100644 index 0000000..4be90de --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/issued/sample_ssl_cert_nist.crt @@ -0,0 +1,56 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 5d:16:ed:ad:8e:7d:bd:06:67:92:f1:85:c0:cc:3e:9b + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_nist + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:f9:22:e2:f6:39:e6:89:24:54:83:e9:c0:52:3b: + 99:c7:a9:41:8f:b1:ea:d2:63:f4:1d:a1:66:a8:f2: + 29:64:b2:32:b5:85:d3:52:1f:36:5c:cd:db:56:9e: + 5c:2d:ac:84:11:65:28:7c:ed:e0:89:3a:e2:23:0d: + 89:94:b2:08:6a + ASN1 OID: prime256v1 + NIST CURVE: P-256 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 65:E0:C8:3D:92:BC:CA:96:87:E3:A8:A7:98:5D:E3:36:8F:85:38:A3 + X509v3 Authority Key Identifier: + keyid:F1:5D:56:02:B0:78:56:E7:58:6E:2D:8B:C1:34:FD:AA:98:68:0A:93 + DirName:/CN=Easy-RSA CA + serial:2F:BA:4F:57:14:D5:23:9D:3F:08:12:5B:B1:58:F8:EF:7F:A2:ED:A0 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0d:6e:56:23:6d:2a:65:ea:ba:72:5a:ed:2b:1c: + cd:8a:e7:b9:47:1d:02:b3:c4:9e:fd:04:e1:4d:5d:5c:c5:60: + 02:20:79:30:1b:85:3b:c5:5e:16:03:c9:26:23:a5:31:17:fe: + 7f:27:76:36:db:7d:0f:58:ea:0c:d4:59:3c:b5:4f:e5 +-----BEGIN CERTIFICATE----- +MIIB8zCCAZqgAwIBAgIQXRbtrY59vQZnkvGFwMw+mzAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowHzEdMBsGA1UEAwwUc2FtcGxlX3NzbF9jZXJ0X25pc3QwWTATBgcqhkjO +PQIBBggqhkjOPQMBBwNCAAT5IuL2OeaJJFSD6cBSO5nHqUGPserSY/QdoWao8ilk +sjK1hdNSHzZczdtWnlwtrIQRZSh87eCJOuIjDYmUsghqo4G+MIG7MAkGA1UdEwQC +MAAwHQYDVR0OBBYEFGXgyD2SvMqWh+Oop5hd4zaPhTijMFEGA1UdIwRKMEiAFPFd +VgKweFbnWG4ti8E0/aqYaAqToRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQYIU +L7pPVxTVI50/CBJbsVj473+i7aAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0P +BAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjOPQQDAgNH +ADBEAiANblYjbSpl6rpyWu0rHM2K57lHHQKzxJ79BOFNXVzFYAIgeTAbhTvFXhYD +ySYjpTEX/n8ndjbbfQ9Y6gzUWTy1T+U= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/ca_nist/pki/private/ca.key b/contrib/sample_ssl_cert/ca_nist/pki/private/ca.key new file mode 100644 index 0000000..e497437 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/private/ca.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBBUrcrkUSLpBBfeWz3p +iL37AgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQfQWVCLpMii06xuUw +Yf+ZzgSBkF15z2deRhnv3nOxHIEmyYXjEfhbGX5jvLW7YsrkudsRVdN9GiuxPSrv +Pa8dkr7Z5lwfr+4Dob5YDbcvisDrtxRgyYt9DdhJU01WI/19fuI9+lcegIMzT0Z1 +KbIdGTcKkSof+fEBLcPszEuzIwymGxaeRJdEFk+FgNjTqDWc1jS7mjzWQoUpoaw4 +fPaXITiRyw== +-----END ENCRYPTED PRIVATE KEY----- diff --git a/contrib/sample_ssl_cert/ca_nist/pki/private/sample_ssl_cert_nist.key b/contrib/sample_ssl_cert/ca_nist/pki/private/sample_ssl_cert_nist.key new file mode 100644 index 0000000..9f8a8dc --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/private/sample_ssl_cert_nist.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBA3sgZkchLxGQjPJ1zR +NB0YAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQ4v44Jsn5XLAskeV+ +oVuHcgSBkPY+rIAo2hMFakx5494XiMSfc301ef63TQR+X2NjFpCsi5GPrcw8f12D +ner42rmIzbmkZ9vvSbMfXrvOfV7cocY3/qhPEyz9RXeZqcr9Dlwd/sIxhPcKK4Yj +zARGmDCpNvcK83syfO90seSIOkj6fRCRJaC9dkcLOunbt4+pYwoLLrISh+vm40PX +cInen8A9Kw== +-----END ENCRYPTED PRIVATE KEY----- diff --git a/contrib/sample_ssl_cert/ca_nist/pki/reqs/sample_ssl_cert_nist.req b/contrib/sample_ssl_cert/ca_nist/pki/reqs/sample_ssl_cert_nist.req new file mode 100644 index 0000000..a397226 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/reqs/sample_ssl_cert_nist.req @@ -0,0 +1,8 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIBCDCBrgIBADAfMR0wGwYDVQQDDBRzYW1wbGVfc3NsX2NlcnRfbmlzdDBZMBMG +ByqGSM49AgEGCCqGSM49AwEHA0IABPki4vY55okkVIPpwFI7mcepQY+x6tJj9B2h +ZqjyKWSyMrWF01IfNlzN21aeXC2shBFlKHzt4Ik64iMNiZSyCGqgLTArBgkqhkiG +9w0BCQ4xHjAcMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjOPQQD +AgNJADBGAiEA29uCMjZNMDT205qLIUsbHqS3CX1YhaFuQcKH65+1SeICIQCXTAUv +Nfev8D72hKqVXuPdgIhKZLx8j/IA0MSbpzatrQ== +-----END CERTIFICATE REQUEST----- diff --git a/contrib/sample_ssl_cert/ca_nist/pki/serial b/contrib/sample_ssl_cert/ca_nist/pki/serial new file mode 100644 index 0000000..78a73ff --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/serial @@ -0,0 +1 @@ +5D16EDAD8E7DBD066792F185C0CC3E9C diff --git a/contrib/sample_ssl_cert/ca_nist/pki/serial.old b/contrib/sample_ssl_cert/ca_nist/pki/serial.old new file mode 100644 index 0000000..dd2c37c --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/serial.old @@ -0,0 +1 @@ +5d16edad8e7dbd066792f185c0cc3e9b diff --git a/contrib/sample_ssl_cert/ca_nist/pki/vars b/contrib/sample_ssl_cert/ca_nist/pki/vars new file mode 100644 index 0000000..b364605 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/vars @@ -0,0 +1,235 @@ +# Easy-RSA 3 parameter settings + +# NOTE: If you installed Easy-RSA from your package manager, do not edit +# this file in place -- instead, you should copy the entire easy-rsa directory +# to another location so future upgrades do not wipe out your changes. + +# HOW TO USE THIS FILE +# +# vars.example contains built-in examples to Easy-RSA settings. You MUST name +# this file "vars" if you want it to be used as a configuration file. If you do +# not, it WILL NOT be automatically read when you call easyrsa commands. +# +# It is not necessary to use this config file unless you wish to change +# operational defaults. These defaults should be fine for many uses without the +# need to copy and edit the "vars" file. +# +# All of the editable settings are shown commented and start with the command +# "set_var" -- this means any set_var command that is uncommented has been +# modified by the user. If you are happy with a default, there is no need to +# define the value to its default. + +# NOTES FOR WINDOWS USERS +# +# Paths for Windows *MUST* use forward slashes, or optionally double-escaped +# backslashes (single forward slashes are recommended.) This means your path to +# the openssl binary might look like this: +# "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# A little housekeeping: DO NOT EDIT THIS SECTION +# +# Easy-RSA 3.x does not source into the environment directly. +# Complain if a user tries to do this: +if [ -z "$EASYRSA_CALLER" ]; then + echo "You appear to be sourcing an Easy-RSA *vars* file." >&2 + echo "This is no longer necessary and is disallowed. See the section called" >&2 + echo "*How to use this file* near the top comments for more details." >&2 + return 1 +fi + +# DO YOUR EDITS BELOW THIS POINT + +# This variable is used as the base location of configuration files needed by +# easyrsa. More specific variables for specific files (e.g., EASYRSA_SSL_CONF) +# may override this default. +# +# The default value of this variable is the location of the easyrsa script +# itself, which is also where the configuration files are located in the +# easy-rsa tree. + +#set_var EASYRSA "${0%/*}" + +# If your OpenSSL command is not in the system PATH, you will need to define the +# path to it here. Normally this means a full path to the executable, otherwise +# you could have left it undefined here and the shown default would be used. +# +# Windows users, remember to use paths with forward-slashes (or escaped +# back-slashes.) Windows users should declare the full path to the openssl +# binary here if it is not in their system PATH. + +#set_var EASYRSA_OPENSSL "openssl" +# +# This sample is in Windows syntax -- edit it for your path if not using PATH: +#set_var EASYRSA_OPENSSL "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# Edit this variable to point to your soon-to-be-created key directory. By +# default, this will be "$PWD/pki" (i.e. the "pki" subdirectory of the +# directory you are currently in). +# +# WARNING: init-pki will do a rm -rf on this directory so make sure you define +# it correctly! (Interactive mode will prompt before acting.) + +#set_var EASYRSA_PKI "$PWD/pki" + +# Define directory for temporary subdirectories. + +#set_var EASYRSA_TEMP_DIR "$EASYRSA_PKI" + +# Define X509 DN mode. +# This is used to adjust what elements are included in the Subject field as the DN +# (this is the "Distinguished Name.") +# Note that in cn_only mode the Organizational fields further below are not used. +# +# Choices are: +# cn_only - use just a CN value +# org - use the "traditional" Country/Province/City/Org/OU/email/CN format + +#set_var EASYRSA_DN "cn_only" + +# Organizational fields (used with "org" mode and ignored in "cn_only" mode.) +# These are the default values for fields which will be placed in the +# certificate. Do not leave any of these fields blank, although interactively +# you may omit any specific field by typing the "." symbol (not valid for +# email.) + +# NOTE: The following characters are not supported +# in these "Organizational fields" by Easy-RSA: +# single quote (') +# back-tick (`) +# hash (#) +# ampersand (&) +# dollar sign ($) +# Use them at your own risk! + +#set_var EASYRSA_REQ_COUNTRY "US" +#set_var EASYRSA_REQ_PROVINCE "California" +#set_var EASYRSA_REQ_CITY "San Francisco" +#set_var EASYRSA_REQ_ORG "Copyleft Certificate Co" +#set_var EASYRSA_REQ_EMAIL "me@example.net" +#set_var EASYRSA_REQ_OU "My Organizational Unit" + +# Choose a size in bits for your keypairs. The recommended value is 2048. Using +# 2048-bit keys is considered more than sufficient for many years into the +# future. Larger keysizes will slow down TLS negotiation and make key/DH param +# generation take much longer. Values up to 4096 should be accepted by most +# software. Only used when the crypto alg is rsa (see below.) + +#set_var EASYRSA_KEY_SIZE 2048 + +# The default crypto mode is rsa; ec can enable elliptic curve support. +# Note that not all software supports ECC, so use care when enabling it. +# Choices for crypto alg are: (each in lower-case) +# * rsa +# * ec +# * ed + +set_var EASYRSA_ALGO ec + +# Define the named curve, used in ec & ed modes: + +set_var EASYRSA_CURVE prime256v1 + +# In how many days should the root CA key expire? + +set_var EASYRSA_CA_EXPIRE 365000 + +# In how many days should certificates expire? + +set_var EASYRSA_CERT_EXPIRE 365000 + +# How many days until the next CRL publish date? Note that the CRL can still be +# parsed after this timeframe passes. It is only used for an expected next +# publication date. +#set_var EASYRSA_CRL_DAYS 180 + +# How many days before its expiration date a certificate is allowed to be +# renewed? +#set_var EASYRSA_CERT_RENEW 30 + +# For fixed certificate start/end dates - Range 1..365 +# If set here then command line option is always in effect. +# The day number 183 is either July 2nd or 3rd (leap-year) +# Replace with your chosen day-of-year value: +#set_var EASYRSA_FIX_OFFSET 183 + +# Random serial numbers by default, set to no for the old incremental serial numbers +# +#set_var EASYRSA_RAND_SN "yes" + +# Support deprecated "Netscape" extensions? (choices "yes" or "no".) The default +# is "no" to discourage use of deprecated extensions. If you require this +# feature to use with --ns-cert-type, set this to "yes" here. This support +# should be replaced with the more modern --remote-cert-tls feature. If you do +# not use --ns-cert-type in your configs, it is safe (and recommended) to leave +# this defined to "no". When set to "yes", server-signed certs get the +# nsCertType=server attribute, and also get any NS_COMMENT defined below in the +# nsComment field. + +#set_var EASYRSA_NS_SUPPORT "no" + +# When NS_SUPPORT is set to "yes", this field is added as the nsComment field. +# Set this blank to omit it. With NS_SUPPORT set to "no" this field is ignored. + +#set_var EASYRSA_NS_COMMENT "Easy-RSA Generated Certificate" + +# A temp file used to stage cert extensions during signing. The default should +# be fine for most users; however, some users might want an alternative under a +# RAM-based FS, such as /dev/shm or /tmp on some systems. + +#set_var EASYRSA_TEMP_FILE "$EASYRSA_PKI/extensions.temp" + +# !! +# NOTE: ADVANCED OPTIONS BELOW THIS POINT +# PLAY WITH THEM AT YOUR OWN RISK +# !! + +# Broken shell command aliases: If you have a largely broken shell that is +# missing any of these POSIX-required commands used by Easy-RSA, you will need +# to define an alias to the proper path for the command. The symptom will be +# some form of a "command not found" error from your shell. This means your +# shell is BROKEN, but you can hack around it here if you really need. These +# shown values are not defaults: it is up to you to know what you are doing if +# you touch these. +# +#alias awk="/alt/bin/awk" +#alias cat="/alt/bin/cat" + +# X509 extensions directory: +# If you want to customize the X509 extensions used, set the directory to look +# for extensions here. Each cert type you sign must have a matching filename, +# and an optional file named "COMMON" is included first when present. Note that +# when undefined here, default behaviour is to look in $EASYRSA_PKI first, then +# fallback to $EASYRSA for the "x509-types" dir. You may override this +# detection with an explicit dir here. +# +#set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types" + +# If you want to generate KDC certificates, you need to set the realm here. +#set_var EASYRSA_KDC_REALM "CHANGEME.EXAMPLE.COM" + +# OpenSSL config file: +# If you need to use a specific openssl config file, you can reference it here. +# Normally this file is auto-detected from a file named openssl-easyrsa.cnf from the +# EASYRSA_PKI or EASYRSA dir (in that order.) NOTE that this file is Easy-RSA +# specific and you cannot just use a standard config file, so this is an +# advanced feature. + +#set_var EASYRSA_SSL_CONF "$EASYRSA_PKI/openssl-easyrsa.cnf" + +# Default CN: +# This is best left alone. Interactively you will set this manually, and BATCH +# callers are expected to set this themselves. + +#set_var EASYRSA_REQ_CN "ChangeMe" + +# Cryptographic digest to use. +# Do not change this default unless you understand the security implications. +# Valid choices include: md5, sha1, sha256, sha224, sha384, sha512 + +#set_var EASYRSA_DIGEST "sha256" + +# Batch mode. Leave this disabled unless you intend to call Easy-RSA explicitly +# in batch mode without any user input, confirmation on dangerous operations, +# or most output. Setting this to any non-blank string enables batch mode. + +#set_var EASYRSA_BATCH "" diff --git a/contrib/sample_ssl_cert/ca_nist/pki/vars.example b/contrib/sample_ssl_cert/ca_nist/pki/vars.example new file mode 100644 index 0000000..85978f0 --- /dev/null +++ b/contrib/sample_ssl_cert/ca_nist/pki/vars.example @@ -0,0 +1,162 @@ +# Easy-RSA 3 parameter settings + +# NOTE: If you installed Easy-RSA from your package manager, do not edit +# this file in place -- instead, you should copy the entire easy-rsa directory +# to another location so future upgrades do not wipe out your changes. + +# HOW TO USE THIS FILE +# +# vars.example contains built-in examples to Easy-RSA settings. You MUST name +# this file "vars" if you want it to be used as a configuration file. If you +# do not, it WILL NOT be automatically read when you call easyrsa commands. +# +# It is not necessary to use this config file unless you wish to change +# operational defaults. These defaults should be fine for many uses without +# the need to copy and edit the "vars" file. +# +# All of the editable settings are shown commented and start with the command +# "set_var" -- this means any set_var command that is uncommented has been +# modified by the user. If you are happy with a default, there is no need to +# define the value to its default. + +# NOTES FOR WINDOWS USERS +# +# Paths for Windows *MUST* use forward slashes, or optionally double-escaped +# backslashes (single forward slashes are recommended.) This means your path +# to the openssl binary might look like this: +# "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# A little housekeeping: DO NOT EDIT THIS SECTION +# +# Easy-RSA 3.x does not source into the environment directly. +# Complain if a user tries to do this: +if [ -z "$EASYRSA_CALLER" ]; then + echo "You appear to be sourcing an Easy-RSA *vars* file. This is" >&2 + echo "no longer necessary and is disallowed. See the section called" >&2 + echo "*How to use this file* near the top comments for more details." >&2 + return 1 +fi + +# DO YOUR EDITS BELOW THIS POINT + +# If your OpenSSL command is not in the system PATH, you will need to define +# the path here. Normally this means a full path to the executable, otherwise +# you could have left it undefined here and the shown default would be used. +# +# Windows users, remember to use paths with forward-slashes (or escaped +# back-slashes.) Windows users should declare the full path to the openssl +# binary here if it is not in their system PATH. +# +#set_var EASYRSA_OPENSSL "openssl" +# +# This sample is in Windows syntax -- edit it for your path if not using PATH: +#set_var EASYRSA_OPENSSL "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# Windows users, to generate OpenVPN TLS Keys the Openvpn binary must be +# defined here. +# +#set_var EASYRSA_OPENVPN "C:\\Program Files\\Openvpn\\bin\\openvpn.exe" + +# Define X509 DN mode. +# +# This is used to adjust which elements are included in the Subject field +# as the DN ("Distinguished Name"). Note that in 'cn_only' mode the +# Organizational fields, listed further below, are not used. +# +# Choices are: +# cn_only - Use just a commonName value. +# org - Use the "traditional" format: +# Country/Province/City/Org/Org.Unit/email/commonName +# +#set_var EASYRSA_DN "cn_only" + +# Organizational fields (used with "org" mode and ignored in "cn_only" mode). +# These are the default values for fields which will be placed in the +# certificate. Do not leave any of these fields blank, although interactively +# you may omit any specific field by typing the "." symbol (not valid for +# email). +# +# NOTE: The following characters are not supported +# in these "Organizational fields" by Easy-RSA: +# back-tick (`) +# +#set_var EASYRSA_REQ_COUNTRY "US" +#set_var EASYRSA_REQ_PROVINCE "California" +#set_var EASYRSA_REQ_CITY "San Francisco" +#set_var EASYRSA_REQ_ORG "Copyleft Certificate Co" +#set_var EASYRSA_REQ_EMAIL "me@example.net" +#set_var EASYRSA_REQ_OU "My Organizational Unit" + +# Preserve the Distinguished Name field order +# of the certificate signing request +# *Only* effective in --dn-mode=org +# +#set_var EASYRSA_PRESERVE_DN 1 + +# Set no password mode - This will create the entire PKI without passwords. +# This can be better managed by choosing which entity private keys should be +# encrypted with the following command line options: +# Global option '--no-pass' or command option 'nopass'. +# +#set_var EASYRSA_NO_PASS 1 + +# Choose a size in bits for your keypairs. The recommended value is 2048. +# Using 2048-bit keys is considered more than sufficient for many years into +# the future. Larger keysizes will slow down TLS negotiation and make key/DH +# param generation take much longer. Values up to 4096 should be accepted by +# most software. Only used when the crypto alg is rsa, see below. +# +#set_var EASYRSA_KEY_SIZE 2048 + +# The default crypto mode is rsa; ec can enable elliptic curve support. +# Note that not all software supports ECC, so use care when enabling it. +# Choices for crypto alg are: (each in lower-case) +# * rsa +# * ec +# * ed +# +#set_var EASYRSA_ALGO rsa + +# Define the named curve, used in ec & ed modes: +# +#set_var EASYRSA_CURVE secp384r1 + +# In how many days should the root CA key expire? +# +#set_var EASYRSA_CA_EXPIRE 3650 + +# In how many days should certificates expire? +# +#set_var EASYRSA_CERT_EXPIRE 825 + +# How many days until the Certificate Revokation List will expire. +# +# IMPORTANT: When the CRL expires, an OpenVPN Server which uses a +# CRL will reject ALL new connections, until the CRL is replaced. +# +#set_var EASYRSA_CRL_DAYS 180 + +# Random serial numbers by default. +# Set to 'no' for the old incremental serial numbers. +# +#set_var EASYRSA_RAND_SN "yes" + +# Cut-off window for checking expiring certificates. +# +#set_var EASYRSA_PRE_EXPIRY_WINDOW 90 + +# Generate automatic subjectAltName for certificates +# +#set_var EASYRSA_AUTO_SAN 1 + +# Add critical attribute to X509 fields: basicConstraints (BC), +# keyUsage (KU), extendedKeyUsage (EKU) or SAN +# +#set_var EASYRSA_BC_CRIT 1 +#set_var EASYRSA_KU_CRIT 1 +#set_var EASYRSA_EKU_CRIT 1 +#set_var EASYRSA_SAN_CRIT 1 + +# Disable automatic inline files +# +#set_var EASYRSA_DISABLE_INLINE 1 diff --git a/contrib/sample_ssl_cert/deploy_certs.sh b/contrib/sample_ssl_cert/deploy_certs.sh new file mode 100755 index 0000000..e5330d5 --- /dev/null +++ b/contrib/sample_ssl_cert/deploy_certs.sh @@ -0,0 +1,4 @@ +#!/bin/bash -e + +cp ./*.key ../../priv/ +cp ./*.crt ../../priv/ diff --git a/contrib/sample_ssl_cert/make_ca.sh b/contrib/sample_ssl_cert/make_ca.sh new file mode 100755 index 0000000..fb7ebdc --- /dev/null +++ b/contrib/sample_ssl_cert/make_ca.sh @@ -0,0 +1,29 @@ +#!/bin/bash -e + +# Path to easyrsa installation +EASYRSA=/usr/share/easy-rsa/easyrsa + +export EASYRSA_PASSIN=pass:test +export EASYRSA_PASSOUT=pass:test + +function make_ca() { + CA_DIR=$1 + CA_VARS=$2 + CA_CERTNAME=$3 + rm -rf ./$CA_DIR + mkdir ./$CA_DIR + + cd $CA_DIR + $EASYRSA init-pki + cp ../$CA_VARS ./pki/vars + $EASYRSA --batch build-ca + cp ./pki/ca.crt ../$CA_CERTNAME.crt + cd .. +} + +rm -rf ./*.key +rm -rf ./*.crt +rm -rf ./*.bundle + +make_ca ca_nist sample_ssl_ca_nist.vars sample_ssl_ca_cert_nist +make_ca ca_brainpool sample_ssl_ca_brainpool.vars sample_ssl_ca_cert_brainpool diff --git a/contrib/sample_ssl_cert/make_certs.sh b/contrib/sample_ssl_cert/make_certs.sh new file mode 100755 index 0000000..a4ea0fe --- /dev/null +++ b/contrib/sample_ssl_cert/make_certs.sh @@ -0,0 +1,23 @@ +#!/bin/bash -e + +# Path to easyrsa installation +EASYRSA=/usr/share/easy-rsa/easyrsa + +export EASYRSA_PASSIN=pass:test +export EASYRSA_PASSOUT=pass:test + +function make_cert() { + CA_DIR=$1 + CERTNAME=$2 + cd $CA_DIR + $EASYRSA --batch --subject-alt-name="DNS:localhost,IP:127.0.0.1" build-server-full $CERTNAME nopass + cp ./pki/issued/$CERTNAME.crt ../ + cp ./pki/private/$CERTNAME.key ../ + cd .. + openssl x509 -inform pem -in $CERTNAME.crt > $CERTNAME.bundle + openssl x509 -inform pem -in ./$CA_DIR/pki/ca.crt >> $CERTNAME.bundle +} + +make_cert ca_nist sample_ssl_cert_nist +make_cert ca_brainpool sample_ssl_cert_brainpool + diff --git a/contrib/sample_ssl_cert/sample_ssl_ca_brainpool.vars b/contrib/sample_ssl_cert/sample_ssl_ca_brainpool.vars new file mode 100644 index 0000000..c65ebbb --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_ca_brainpool.vars @@ -0,0 +1,235 @@ +# Easy-RSA 3 parameter settings + +# NOTE: If you installed Easy-RSA from your package manager, do not edit +# this file in place -- instead, you should copy the entire easy-rsa directory +# to another location so future upgrades do not wipe out your changes. + +# HOW TO USE THIS FILE +# +# vars.example contains built-in examples to Easy-RSA settings. You MUST name +# this file "vars" if you want it to be used as a configuration file. If you do +# not, it WILL NOT be automatically read when you call easyrsa commands. +# +# It is not necessary to use this config file unless you wish to change +# operational defaults. These defaults should be fine for many uses without the +# need to copy and edit the "vars" file. +# +# All of the editable settings are shown commented and start with the command +# "set_var" -- this means any set_var command that is uncommented has been +# modified by the user. If you are happy with a default, there is no need to +# define the value to its default. + +# NOTES FOR WINDOWS USERS +# +# Paths for Windows *MUST* use forward slashes, or optionally double-escaped +# backslashes (single forward slashes are recommended.) This means your path to +# the openssl binary might look like this: +# "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# A little housekeeping: DO NOT EDIT THIS SECTION +# +# Easy-RSA 3.x does not source into the environment directly. +# Complain if a user tries to do this: +if [ -z "$EASYRSA_CALLER" ]; then + echo "You appear to be sourcing an Easy-RSA *vars* file." >&2 + echo "This is no longer necessary and is disallowed. See the section called" >&2 + echo "*How to use this file* near the top comments for more details." >&2 + return 1 +fi + +# DO YOUR EDITS BELOW THIS POINT + +# This variable is used as the base location of configuration files needed by +# easyrsa. More specific variables for specific files (e.g., EASYRSA_SSL_CONF) +# may override this default. +# +# The default value of this variable is the location of the easyrsa script +# itself, which is also where the configuration files are located in the +# easy-rsa tree. + +#set_var EASYRSA "${0%/*}" + +# If your OpenSSL command is not in the system PATH, you will need to define the +# path to it here. Normally this means a full path to the executable, otherwise +# you could have left it undefined here and the shown default would be used. +# +# Windows users, remember to use paths with forward-slashes (or escaped +# back-slashes.) Windows users should declare the full path to the openssl +# binary here if it is not in their system PATH. + +#set_var EASYRSA_OPENSSL "openssl" +# +# This sample is in Windows syntax -- edit it for your path if not using PATH: +#set_var EASYRSA_OPENSSL "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# Edit this variable to point to your soon-to-be-created key directory. By +# default, this will be "$PWD/pki" (i.e. the "pki" subdirectory of the +# directory you are currently in). +# +# WARNING: init-pki will do a rm -rf on this directory so make sure you define +# it correctly! (Interactive mode will prompt before acting.) + +#set_var EASYRSA_PKI "$PWD/pki" + +# Define directory for temporary subdirectories. + +#set_var EASYRSA_TEMP_DIR "$EASYRSA_PKI" + +# Define X509 DN mode. +# This is used to adjust what elements are included in the Subject field as the DN +# (this is the "Distinguished Name.") +# Note that in cn_only mode the Organizational fields further below are not used. +# +# Choices are: +# cn_only - use just a CN value +# org - use the "traditional" Country/Province/City/Org/OU/email/CN format + +#set_var EASYRSA_DN "cn_only" + +# Organizational fields (used with "org" mode and ignored in "cn_only" mode.) +# These are the default values for fields which will be placed in the +# certificate. Do not leave any of these fields blank, although interactively +# you may omit any specific field by typing the "." symbol (not valid for +# email.) + +# NOTE: The following characters are not supported +# in these "Organizational fields" by Easy-RSA: +# single quote (') +# back-tick (`) +# hash (#) +# ampersand (&) +# dollar sign ($) +# Use them at your own risk! + +#set_var EASYRSA_REQ_COUNTRY "US" +#set_var EASYRSA_REQ_PROVINCE "California" +#set_var EASYRSA_REQ_CITY "San Francisco" +#set_var EASYRSA_REQ_ORG "Copyleft Certificate Co" +#set_var EASYRSA_REQ_EMAIL "me@example.net" +#set_var EASYRSA_REQ_OU "My Organizational Unit" + +# Choose a size in bits for your keypairs. The recommended value is 2048. Using +# 2048-bit keys is considered more than sufficient for many years into the +# future. Larger keysizes will slow down TLS negotiation and make key/DH param +# generation take much longer. Values up to 4096 should be accepted by most +# software. Only used when the crypto alg is rsa (see below.) + +#set_var EASYRSA_KEY_SIZE 2048 + +# The default crypto mode is rsa; ec can enable elliptic curve support. +# Note that not all software supports ECC, so use care when enabling it. +# Choices for crypto alg are: (each in lower-case) +# * rsa +# * ec +# * ed + +set_var EASYRSA_ALGO ec + +# Define the named curve, used in ec & ed modes: + +set_var EASYRSA_CURVE brainpoolP256r1 + +# In how many days should the root CA key expire? + +set_var EASYRSA_CA_EXPIRE 365000 + +# In how many days should certificates expire? + +set_var EASYRSA_CERT_EXPIRE 365000 + +# How many days until the next CRL publish date? Note that the CRL can still be +# parsed after this timeframe passes. It is only used for an expected next +# publication date. +#set_var EASYRSA_CRL_DAYS 180 + +# How many days before its expiration date a certificate is allowed to be +# renewed? +#set_var EASYRSA_CERT_RENEW 30 + +# For fixed certificate start/end dates - Range 1..365 +# If set here then command line option is always in effect. +# The day number 183 is either July 2nd or 3rd (leap-year) +# Replace with your chosen day-of-year value: +#set_var EASYRSA_FIX_OFFSET 183 + +# Random serial numbers by default, set to no for the old incremental serial numbers +# +#set_var EASYRSA_RAND_SN "yes" + +# Support deprecated "Netscape" extensions? (choices "yes" or "no".) The default +# is "no" to discourage use of deprecated extensions. If you require this +# feature to use with --ns-cert-type, set this to "yes" here. This support +# should be replaced with the more modern --remote-cert-tls feature. If you do +# not use --ns-cert-type in your configs, it is safe (and recommended) to leave +# this defined to "no". When set to "yes", server-signed certs get the +# nsCertType=server attribute, and also get any NS_COMMENT defined below in the +# nsComment field. + +#set_var EASYRSA_NS_SUPPORT "no" + +# When NS_SUPPORT is set to "yes", this field is added as the nsComment field. +# Set this blank to omit it. With NS_SUPPORT set to "no" this field is ignored. + +#set_var EASYRSA_NS_COMMENT "Easy-RSA Generated Certificate" + +# A temp file used to stage cert extensions during signing. The default should +# be fine for most users; however, some users might want an alternative under a +# RAM-based FS, such as /dev/shm or /tmp on some systems. + +#set_var EASYRSA_TEMP_FILE "$EASYRSA_PKI/extensions.temp" + +# !! +# NOTE: ADVANCED OPTIONS BELOW THIS POINT +# PLAY WITH THEM AT YOUR OWN RISK +# !! + +# Broken shell command aliases: If you have a largely broken shell that is +# missing any of these POSIX-required commands used by Easy-RSA, you will need +# to define an alias to the proper path for the command. The symptom will be +# some form of a "command not found" error from your shell. This means your +# shell is BROKEN, but you can hack around it here if you really need. These +# shown values are not defaults: it is up to you to know what you are doing if +# you touch these. +# +#alias awk="/alt/bin/awk" +#alias cat="/alt/bin/cat" + +# X509 extensions directory: +# If you want to customize the X509 extensions used, set the directory to look +# for extensions here. Each cert type you sign must have a matching filename, +# and an optional file named "COMMON" is included first when present. Note that +# when undefined here, default behaviour is to look in $EASYRSA_PKI first, then +# fallback to $EASYRSA for the "x509-types" dir. You may override this +# detection with an explicit dir here. +# +#set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types" + +# If you want to generate KDC certificates, you need to set the realm here. +#set_var EASYRSA_KDC_REALM "CHANGEME.EXAMPLE.COM" + +# OpenSSL config file: +# If you need to use a specific openssl config file, you can reference it here. +# Normally this file is auto-detected from a file named openssl-easyrsa.cnf from the +# EASYRSA_PKI or EASYRSA dir (in that order.) NOTE that this file is Easy-RSA +# specific and you cannot just use a standard config file, so this is an +# advanced feature. + +#set_var EASYRSA_SSL_CONF "$EASYRSA_PKI/openssl-easyrsa.cnf" + +# Default CN: +# This is best left alone. Interactively you will set this manually, and BATCH +# callers are expected to set this themselves. + +#set_var EASYRSA_REQ_CN "ChangeMe" + +# Cryptographic digest to use. +# Do not change this default unless you understand the security implications. +# Valid choices include: md5, sha1, sha256, sha224, sha384, sha512 + +#set_var EASYRSA_DIGEST "sha256" + +# Batch mode. Leave this disabled unless you intend to call Easy-RSA explicitly +# in batch mode without any user input, confirmation on dangerous operations, +# or most output. Setting this to any non-blank string enables batch mode. + +#set_var EASYRSA_BATCH "" diff --git a/contrib/sample_ssl_cert/sample_ssl_ca_cert_brainpool.crt b/contrib/sample_ssl_cert/sample_ssl_ca_cert_brainpool.crt new file mode 100644 index 0000000..108b24b --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_ca_cert_brainpool.crt @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBwTCCAWigAwIBAgIUf5gUzIMEpFhOB2rcskJkXY84w2UwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFowFAYHKoZIzj0CAQYJ +KyQDAwIIAQEHA0IABIUANIXkvAYaqoxqJinzgsspJLyPDpHFhW0pPD5CFrukEd4g +NEvdcVPHDLfp9OuMLdViT2pnHANbHGAAQwA8/46jgZAwgY0wDAYDVR0TBAUwAwEB +/zAdBgNVHQ4EFgQU2cTneFMWEN5KrzWIpmWfl7Y5EqAwUQYDVR0jBEowSIAU2cTn +eFMWEN5KrzWIpmWfl7Y5EqChGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghR/ +mBTMgwSkWE4HatyyQmRdjzjDZTALBgNVHQ8EBAMCAQYwCgYIKoZIzj0EAwIDRwAw +RAIgcnSvdjMPbm/t5bHu8+GXEJU2T6hfGl7H5dfl4XXwijECIASj9eiYKOgWtpGO +ZiDYOlZ8ryuFODC2mEf7hH2XWQ9z +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/sample_ssl_ca_cert_nist.crt b/contrib/sample_ssl_cert/sample_ssl_ca_cert_nist.crt new file mode 100644 index 0000000..dc36202 --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_ca_cert_nist.crt @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBwDCCAWegAwIBAgIUL7pPVxTVI50/CBJbsVj473+i7aAwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFkwEwYHKoZIzj0CAQYI +KoZIzj0DAQcDQgAEDa6R9/Q3rfxv20SDUGeolx30iGdwf9C6dnaLHIv4B/ZLEXmY +eyXryf17iWsB6+nhdsb8TbALKnI2cy2SKteYgKOBkDCBjTAMBgNVHRMEBTADAQH/ +MB0GA1UdDgQWBBTxXVYCsHhW51huLYvBNP2qmGgKkzBRBgNVHSMESjBIgBTxXVYC +sHhW51huLYvBNP2qmGgKk6EapBgwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0GCFC+6 +T1cU1SOdPwgSW7FY+O9/ou2gMAsGA1UdDwQEAwIBBjAKBggqhkjOPQQDAgNHADBE +AiB6Xzx/88R329Qyi8sfnLi6kcGVWDAyppYSzSqR5EbnpAIgS1tgZ2TdSz6+6qU1 +g1FJMWdPb69N29C7v9CamUCp+X8= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/sample_ssl_ca_nist.vars b/contrib/sample_ssl_cert/sample_ssl_ca_nist.vars new file mode 100644 index 0000000..b364605 --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_ca_nist.vars @@ -0,0 +1,235 @@ +# Easy-RSA 3 parameter settings + +# NOTE: If you installed Easy-RSA from your package manager, do not edit +# this file in place -- instead, you should copy the entire easy-rsa directory +# to another location so future upgrades do not wipe out your changes. + +# HOW TO USE THIS FILE +# +# vars.example contains built-in examples to Easy-RSA settings. You MUST name +# this file "vars" if you want it to be used as a configuration file. If you do +# not, it WILL NOT be automatically read when you call easyrsa commands. +# +# It is not necessary to use this config file unless you wish to change +# operational defaults. These defaults should be fine for many uses without the +# need to copy and edit the "vars" file. +# +# All of the editable settings are shown commented and start with the command +# "set_var" -- this means any set_var command that is uncommented has been +# modified by the user. If you are happy with a default, there is no need to +# define the value to its default. + +# NOTES FOR WINDOWS USERS +# +# Paths for Windows *MUST* use forward slashes, or optionally double-escaped +# backslashes (single forward slashes are recommended.) This means your path to +# the openssl binary might look like this: +# "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# A little housekeeping: DO NOT EDIT THIS SECTION +# +# Easy-RSA 3.x does not source into the environment directly. +# Complain if a user tries to do this: +if [ -z "$EASYRSA_CALLER" ]; then + echo "You appear to be sourcing an Easy-RSA *vars* file." >&2 + echo "This is no longer necessary and is disallowed. See the section called" >&2 + echo "*How to use this file* near the top comments for more details." >&2 + return 1 +fi + +# DO YOUR EDITS BELOW THIS POINT + +# This variable is used as the base location of configuration files needed by +# easyrsa. More specific variables for specific files (e.g., EASYRSA_SSL_CONF) +# may override this default. +# +# The default value of this variable is the location of the easyrsa script +# itself, which is also where the configuration files are located in the +# easy-rsa tree. + +#set_var EASYRSA "${0%/*}" + +# If your OpenSSL command is not in the system PATH, you will need to define the +# path to it here. Normally this means a full path to the executable, otherwise +# you could have left it undefined here and the shown default would be used. +# +# Windows users, remember to use paths with forward-slashes (or escaped +# back-slashes.) Windows users should declare the full path to the openssl +# binary here if it is not in their system PATH. + +#set_var EASYRSA_OPENSSL "openssl" +# +# This sample is in Windows syntax -- edit it for your path if not using PATH: +#set_var EASYRSA_OPENSSL "C:/Program Files/OpenSSL-Win32/bin/openssl.exe" + +# Edit this variable to point to your soon-to-be-created key directory. By +# default, this will be "$PWD/pki" (i.e. the "pki" subdirectory of the +# directory you are currently in). +# +# WARNING: init-pki will do a rm -rf on this directory so make sure you define +# it correctly! (Interactive mode will prompt before acting.) + +#set_var EASYRSA_PKI "$PWD/pki" + +# Define directory for temporary subdirectories. + +#set_var EASYRSA_TEMP_DIR "$EASYRSA_PKI" + +# Define X509 DN mode. +# This is used to adjust what elements are included in the Subject field as the DN +# (this is the "Distinguished Name.") +# Note that in cn_only mode the Organizational fields further below are not used. +# +# Choices are: +# cn_only - use just a CN value +# org - use the "traditional" Country/Province/City/Org/OU/email/CN format + +#set_var EASYRSA_DN "cn_only" + +# Organizational fields (used with "org" mode and ignored in "cn_only" mode.) +# These are the default values for fields which will be placed in the +# certificate. Do not leave any of these fields blank, although interactively +# you may omit any specific field by typing the "." symbol (not valid for +# email.) + +# NOTE: The following characters are not supported +# in these "Organizational fields" by Easy-RSA: +# single quote (') +# back-tick (`) +# hash (#) +# ampersand (&) +# dollar sign ($) +# Use them at your own risk! + +#set_var EASYRSA_REQ_COUNTRY "US" +#set_var EASYRSA_REQ_PROVINCE "California" +#set_var EASYRSA_REQ_CITY "San Francisco" +#set_var EASYRSA_REQ_ORG "Copyleft Certificate Co" +#set_var EASYRSA_REQ_EMAIL "me@example.net" +#set_var EASYRSA_REQ_OU "My Organizational Unit" + +# Choose a size in bits for your keypairs. The recommended value is 2048. Using +# 2048-bit keys is considered more than sufficient for many years into the +# future. Larger keysizes will slow down TLS negotiation and make key/DH param +# generation take much longer. Values up to 4096 should be accepted by most +# software. Only used when the crypto alg is rsa (see below.) + +#set_var EASYRSA_KEY_SIZE 2048 + +# The default crypto mode is rsa; ec can enable elliptic curve support. +# Note that not all software supports ECC, so use care when enabling it. +# Choices for crypto alg are: (each in lower-case) +# * rsa +# * ec +# * ed + +set_var EASYRSA_ALGO ec + +# Define the named curve, used in ec & ed modes: + +set_var EASYRSA_CURVE prime256v1 + +# In how many days should the root CA key expire? + +set_var EASYRSA_CA_EXPIRE 365000 + +# In how many days should certificates expire? + +set_var EASYRSA_CERT_EXPIRE 365000 + +# How many days until the next CRL publish date? Note that the CRL can still be +# parsed after this timeframe passes. It is only used for an expected next +# publication date. +#set_var EASYRSA_CRL_DAYS 180 + +# How many days before its expiration date a certificate is allowed to be +# renewed? +#set_var EASYRSA_CERT_RENEW 30 + +# For fixed certificate start/end dates - Range 1..365 +# If set here then command line option is always in effect. +# The day number 183 is either July 2nd or 3rd (leap-year) +# Replace with your chosen day-of-year value: +#set_var EASYRSA_FIX_OFFSET 183 + +# Random serial numbers by default, set to no for the old incremental serial numbers +# +#set_var EASYRSA_RAND_SN "yes" + +# Support deprecated "Netscape" extensions? (choices "yes" or "no".) The default +# is "no" to discourage use of deprecated extensions. If you require this +# feature to use with --ns-cert-type, set this to "yes" here. This support +# should be replaced with the more modern --remote-cert-tls feature. If you do +# not use --ns-cert-type in your configs, it is safe (and recommended) to leave +# this defined to "no". When set to "yes", server-signed certs get the +# nsCertType=server attribute, and also get any NS_COMMENT defined below in the +# nsComment field. + +#set_var EASYRSA_NS_SUPPORT "no" + +# When NS_SUPPORT is set to "yes", this field is added as the nsComment field. +# Set this blank to omit it. With NS_SUPPORT set to "no" this field is ignored. + +#set_var EASYRSA_NS_COMMENT "Easy-RSA Generated Certificate" + +# A temp file used to stage cert extensions during signing. The default should +# be fine for most users; however, some users might want an alternative under a +# RAM-based FS, such as /dev/shm or /tmp on some systems. + +#set_var EASYRSA_TEMP_FILE "$EASYRSA_PKI/extensions.temp" + +# !! +# NOTE: ADVANCED OPTIONS BELOW THIS POINT +# PLAY WITH THEM AT YOUR OWN RISK +# !! + +# Broken shell command aliases: If you have a largely broken shell that is +# missing any of these POSIX-required commands used by Easy-RSA, you will need +# to define an alias to the proper path for the command. The symptom will be +# some form of a "command not found" error from your shell. This means your +# shell is BROKEN, but you can hack around it here if you really need. These +# shown values are not defaults: it is up to you to know what you are doing if +# you touch these. +# +#alias awk="/alt/bin/awk" +#alias cat="/alt/bin/cat" + +# X509 extensions directory: +# If you want to customize the X509 extensions used, set the directory to look +# for extensions here. Each cert type you sign must have a matching filename, +# and an optional file named "COMMON" is included first when present. Note that +# when undefined here, default behaviour is to look in $EASYRSA_PKI first, then +# fallback to $EASYRSA for the "x509-types" dir. You may override this +# detection with an explicit dir here. +# +#set_var EASYRSA_EXT_DIR "$EASYRSA/x509-types" + +# If you want to generate KDC certificates, you need to set the realm here. +#set_var EASYRSA_KDC_REALM "CHANGEME.EXAMPLE.COM" + +# OpenSSL config file: +# If you need to use a specific openssl config file, you can reference it here. +# Normally this file is auto-detected from a file named openssl-easyrsa.cnf from the +# EASYRSA_PKI or EASYRSA dir (in that order.) NOTE that this file is Easy-RSA +# specific and you cannot just use a standard config file, so this is an +# advanced feature. + +#set_var EASYRSA_SSL_CONF "$EASYRSA_PKI/openssl-easyrsa.cnf" + +# Default CN: +# This is best left alone. Interactively you will set this manually, and BATCH +# callers are expected to set this themselves. + +#set_var EASYRSA_REQ_CN "ChangeMe" + +# Cryptographic digest to use. +# Do not change this default unless you understand the security implications. +# Valid choices include: md5, sha1, sha256, sha224, sha384, sha512 + +#set_var EASYRSA_DIGEST "sha256" + +# Batch mode. Leave this disabled unless you intend to call Easy-RSA explicitly +# in batch mode without any user input, confirmation on dangerous operations, +# or most output. Setting this to any non-blank string enables batch mode. + +#set_var EASYRSA_BATCH "" diff --git a/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.bundle b/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.bundle new file mode 100644 index 0000000..0bda9e8 --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.bundle @@ -0,0 +1,25 @@ +-----BEGIN CERTIFICATE----- +MIIB+TCCAaCgAwIBAgIQQ4f1ckVpUIoYO4U4W5dimjAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowJDEiMCAGA1UEAwwZc2FtcGxlX3NzbF9jZXJ0X2JyYWlucG9vbDBaMBQG +ByqGSM49AgEGCSskAwMCCAEBBwNCAARIH3nL43PpOQ5GBUjML72YvyRsmYaQh0xS +RbjixTGbsFmZqDWG2776oDwHPb0M099IXPsaa1lGov5V2llXFqFXo4G+MIG7MAkG +A1UdEwQCMAAwHQYDVR0OBBYEFFu01ALnI1jujO7t5utDhxIdzgmmMFEGA1UdIwRK +MEiAFNnE53hTFhDeSq81iKZln5e2ORKgoRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJT +QSBDQYIUf5gUzIMEpFhOB2rcskJkXY84w2UwEwYDVR0lBAwwCgYIKwYBBQUHAwEw +CwYDVR0PBAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjO +PQQDAgNHADBEAiAPKohUkl6x26QopNH7qeBo7QxWObebFQRcV0ttgeTpCAIgf0Hg +ND8bYUVCfYIaY8eFkgsRuoZsz2PApPq9Rgj8hrs= +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIBwTCCAWigAwIBAgIUf5gUzIMEpFhOB2rcskJkXY84w2UwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFowFAYHKoZIzj0CAQYJ +KyQDAwIIAQEHA0IABIUANIXkvAYaqoxqJinzgsspJLyPDpHFhW0pPD5CFrukEd4g +NEvdcVPHDLfp9OuMLdViT2pnHANbHGAAQwA8/46jgZAwgY0wDAYDVR0TBAUwAwEB +/zAdBgNVHQ4EFgQU2cTneFMWEN5KrzWIpmWfl7Y5EqAwUQYDVR0jBEowSIAU2cTn +eFMWEN5KrzWIpmWfl7Y5EqChGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghR/ +mBTMgwSkWE4HatyyQmRdjzjDZTALBgNVHQ8EBAMCAQYwCgYIKoZIzj0EAwIDRwAw +RAIgcnSvdjMPbm/t5bHu8+GXEJU2T6hfGl7H5dfl4XXwijECIASj9eiYKOgWtpGO +ZiDYOlZ8ryuFODC2mEf7hH2XWQ9z +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.crt b/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.crt new file mode 100644 index 0000000..cc74561 --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.crt @@ -0,0 +1,55 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:87:f5:72:45:69:50:8a:18:3b:85:38:5b:97:62:9a + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_brainpool + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:48:1f:79:cb:e3:73:e9:39:0e:46:05:48:cc:2f: + bd:98:bf:24:6c:99:86:90:87:4c:52:45:b8:e2:c5: + 31:9b:b0:59:99:a8:35:86:db:be:fa:a0:3c:07:3d: + bd:0c:d3:df:48:5c:fb:1a:6b:59:46:a2:fe:55:da: + 59:57:16:a1:57 + ASN1 OID: brainpoolP256r1 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 5B:B4:D4:02:E7:23:58:EE:8C:EE:ED:E6:EB:43:87:12:1D:CE:09:A6 + X509v3 Authority Key Identifier: + keyid:D9:C4:E7:78:53:16:10:DE:4A:AF:35:88:A6:65:9F:97:B6:39:12:A0 + DirName:/CN=Easy-RSA CA + serial:7F:98:14:CC:83:04:A4:58:4E:07:6A:DC:B2:42:64:5D:8F:38:C3:65 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0f:2a:88:54:92:5e:b1:db:a4:28:a4:d1:fb:a9: + e0:68:ed:0c:56:39:b7:9b:15:04:5c:57:4b:6d:81:e4:e9:08: + 02:20:7f:41:e0:34:3f:1b:61:45:42:7d:82:1a:63:c7:85:92: + 0b:11:ba:86:6c:cf:63:c0:a4:fa:bd:46:08:fc:86:bb +-----BEGIN CERTIFICATE----- +MIIB+TCCAaCgAwIBAgIQQ4f1ckVpUIoYO4U4W5dimjAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowJDEiMCAGA1UEAwwZc2FtcGxlX3NzbF9jZXJ0X2JyYWlucG9vbDBaMBQG +ByqGSM49AgEGCSskAwMCCAEBBwNCAARIH3nL43PpOQ5GBUjML72YvyRsmYaQh0xS +RbjixTGbsFmZqDWG2776oDwHPb0M099IXPsaa1lGov5V2llXFqFXo4G+MIG7MAkG +A1UdEwQCMAAwHQYDVR0OBBYEFFu01ALnI1jujO7t5utDhxIdzgmmMFEGA1UdIwRK +MEiAFNnE53hTFhDeSq81iKZln5e2ORKgoRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJT +QSBDQYIUf5gUzIMEpFhOB2rcskJkXY84w2UwEwYDVR0lBAwwCgYIKwYBBQUHAwEw +CwYDVR0PBAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjO +PQQDAgNHADBEAiAPKohUkl6x26QopNH7qeBo7QxWObebFQRcV0ttgeTpCAIgf0Hg +ND8bYUVCfYIaY8eFkgsRuoZsz2PApPq9Rgj8hrs= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.key b/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.key new file mode 100644 index 0000000..2350f39 --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_cert_brainpool.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBCg0iIq8MTdwzFcdQ1D +fU3BAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQQcjYv+ECC9YaYNPp +k7Li5QSBkBjbJhQgp0U+qBeTQWBa81Q0Aq690O6nIpSqZG5OO2WlUCAPA/CdzGwU +4A3EsdY3Nq3lW3sagiqICFWb4Odf36dgu3tHPl42F12KKbDgATTj2zGyOu/AIgDT +8iCel31NP//cao0ly4r0jjF3zHEqTfexupFJuJRmE2QtGLONgCcyI6PgLb8ritPy +RN1NBk9Lfw== +-----END ENCRYPTED PRIVATE KEY----- diff --git a/contrib/sample_ssl_cert/sample_ssl_cert_nist.bundle b/contrib/sample_ssl_cert/sample_ssl_cert_nist.bundle new file mode 100644 index 0000000..82e4402 --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_cert_nist.bundle @@ -0,0 +1,25 @@ +-----BEGIN CERTIFICATE----- +MIIB8zCCAZqgAwIBAgIQXRbtrY59vQZnkvGFwMw+mzAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowHzEdMBsGA1UEAwwUc2FtcGxlX3NzbF9jZXJ0X25pc3QwWTATBgcqhkjO +PQIBBggqhkjOPQMBBwNCAAT5IuL2OeaJJFSD6cBSO5nHqUGPserSY/QdoWao8ilk +sjK1hdNSHzZczdtWnlwtrIQRZSh87eCJOuIjDYmUsghqo4G+MIG7MAkGA1UdEwQC +MAAwHQYDVR0OBBYEFGXgyD2SvMqWh+Oop5hd4zaPhTijMFEGA1UdIwRKMEiAFPFd +VgKweFbnWG4ti8E0/aqYaAqToRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQYIU +L7pPVxTVI50/CBJbsVj473+i7aAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0P +BAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjOPQQDAgNH +ADBEAiANblYjbSpl6rpyWu0rHM2K57lHHQKzxJ79BOFNXVzFYAIgeTAbhTvFXhYD +ySYjpTEX/n8ndjbbfQ9Y6gzUWTy1T+U= +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIBwDCCAWegAwIBAgIUL7pPVxTVI50/CBJbsVj473+i7aAwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFkwEwYHKoZIzj0CAQYI +KoZIzj0DAQcDQgAEDa6R9/Q3rfxv20SDUGeolx30iGdwf9C6dnaLHIv4B/ZLEXmY +eyXryf17iWsB6+nhdsb8TbALKnI2cy2SKteYgKOBkDCBjTAMBgNVHRMEBTADAQH/ +MB0GA1UdDgQWBBTxXVYCsHhW51huLYvBNP2qmGgKkzBRBgNVHSMESjBIgBTxXVYC +sHhW51huLYvBNP2qmGgKk6EapBgwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0GCFC+6 +T1cU1SOdPwgSW7FY+O9/ou2gMAsGA1UdDwQEAwIBBjAKBggqhkjOPQQDAgNHADBE +AiB6Xzx/88R329Qyi8sfnLi6kcGVWDAyppYSzSqR5EbnpAIgS1tgZ2TdSz6+6qU1 +g1FJMWdPb69N29C7v9CamUCp+X8= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/sample_ssl_cert_nist.crt b/contrib/sample_ssl_cert/sample_ssl_cert_nist.crt new file mode 100644 index 0000000..4be90de --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_cert_nist.crt @@ -0,0 +1,56 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 5d:16:ed:ad:8e:7d:bd:06:67:92:f1:85:c0:cc:3e:9b + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_nist + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:f9:22:e2:f6:39:e6:89:24:54:83:e9:c0:52:3b: + 99:c7:a9:41:8f:b1:ea:d2:63:f4:1d:a1:66:a8:f2: + 29:64:b2:32:b5:85:d3:52:1f:36:5c:cd:db:56:9e: + 5c:2d:ac:84:11:65:28:7c:ed:e0:89:3a:e2:23:0d: + 89:94:b2:08:6a + ASN1 OID: prime256v1 + NIST CURVE: P-256 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 65:E0:C8:3D:92:BC:CA:96:87:E3:A8:A7:98:5D:E3:36:8F:85:38:A3 + X509v3 Authority Key Identifier: + keyid:F1:5D:56:02:B0:78:56:E7:58:6E:2D:8B:C1:34:FD:AA:98:68:0A:93 + DirName:/CN=Easy-RSA CA + serial:2F:BA:4F:57:14:D5:23:9D:3F:08:12:5B:B1:58:F8:EF:7F:A2:ED:A0 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0d:6e:56:23:6d:2a:65:ea:ba:72:5a:ed:2b:1c: + cd:8a:e7:b9:47:1d:02:b3:c4:9e:fd:04:e1:4d:5d:5c:c5:60: + 02:20:79:30:1b:85:3b:c5:5e:16:03:c9:26:23:a5:31:17:fe: + 7f:27:76:36:db:7d:0f:58:ea:0c:d4:59:3c:b5:4f:e5 +-----BEGIN CERTIFICATE----- +MIIB8zCCAZqgAwIBAgIQXRbtrY59vQZnkvGFwMw+mzAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowHzEdMBsGA1UEAwwUc2FtcGxlX3NzbF9jZXJ0X25pc3QwWTATBgcqhkjO +PQIBBggqhkjOPQMBBwNCAAT5IuL2OeaJJFSD6cBSO5nHqUGPserSY/QdoWao8ilk +sjK1hdNSHzZczdtWnlwtrIQRZSh87eCJOuIjDYmUsghqo4G+MIG7MAkGA1UdEwQC +MAAwHQYDVR0OBBYEFGXgyD2SvMqWh+Oop5hd4zaPhTijMFEGA1UdIwRKMEiAFPFd +VgKweFbnWG4ti8E0/aqYaAqToRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQYIU +L7pPVxTVI50/CBJbsVj473+i7aAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0P +BAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjOPQQDAgNH +ADBEAiANblYjbSpl6rpyWu0rHM2K57lHHQKzxJ79BOFNXVzFYAIgeTAbhTvFXhYD +ySYjpTEX/n8ndjbbfQ9Y6gzUWTy1T+U= +-----END CERTIFICATE----- diff --git a/contrib/sample_ssl_cert/sample_ssl_cert_nist.key b/contrib/sample_ssl_cert/sample_ssl_cert_nist.key new file mode 100644 index 0000000..9f8a8dc --- /dev/null +++ b/contrib/sample_ssl_cert/sample_ssl_cert_nist.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBA3sgZkchLxGQjPJ1zR +NB0YAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQ4v44Jsn5XLAskeV+ +oVuHcgSBkPY+rIAo2hMFakx5494XiMSfc301ef63TQR+X2NjFpCsi5GPrcw8f12D +ner42rmIzbmkZ9vvSbMfXrvOfV7cocY3/qhPEyz9RXeZqcr9Dlwd/sIxhPcKK4Yj +zARGmDCpNvcK83syfO90seSIOkj6fRCRJaC9dkcLOunbt4+pYwoLLrISh+vm40PX +cInen8A9Kw== +-----END ENCRYPTED PRIVATE KEY----- diff --git a/priv/sample_ssl_ca_cert_brainpool.crt b/priv/sample_ssl_ca_cert_brainpool.crt new file mode 100644 index 0000000..108b24b --- /dev/null +++ b/priv/sample_ssl_ca_cert_brainpool.crt @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBwTCCAWigAwIBAgIUf5gUzIMEpFhOB2rcskJkXY84w2UwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFowFAYHKoZIzj0CAQYJ +KyQDAwIIAQEHA0IABIUANIXkvAYaqoxqJinzgsspJLyPDpHFhW0pPD5CFrukEd4g +NEvdcVPHDLfp9OuMLdViT2pnHANbHGAAQwA8/46jgZAwgY0wDAYDVR0TBAUwAwEB +/zAdBgNVHQ4EFgQU2cTneFMWEN5KrzWIpmWfl7Y5EqAwUQYDVR0jBEowSIAU2cTn +eFMWEN5KrzWIpmWfl7Y5EqChGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghR/ +mBTMgwSkWE4HatyyQmRdjzjDZTALBgNVHQ8EBAMCAQYwCgYIKoZIzj0EAwIDRwAw +RAIgcnSvdjMPbm/t5bHu8+GXEJU2T6hfGl7H5dfl4XXwijECIASj9eiYKOgWtpGO +ZiDYOlZ8ryuFODC2mEf7hH2XWQ9z +-----END CERTIFICATE----- diff --git a/priv/sample_ssl_ca_cert_nist.crt b/priv/sample_ssl_ca_cert_nist.crt new file mode 100644 index 0000000..dc36202 --- /dev/null +++ b/priv/sample_ssl_ca_cert_nist.crt @@ -0,0 +1,12 @@ +-----BEGIN CERTIFICATE----- +MIIBwDCCAWegAwIBAgIUL7pPVxTVI50/CBJbsVj473+i7aAwCgYIKoZIzj0EAwIw +FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjYxMTA1MTU1MjI2WhgPMzAyNjAz +MDgxNTUyMjZaMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBMFkwEwYHKoZIzj0CAQYI +KoZIzj0DAQcDQgAEDa6R9/Q3rfxv20SDUGeolx30iGdwf9C6dnaLHIv4B/ZLEXmY +eyXryf17iWsB6+nhdsb8TbALKnI2cy2SKteYgKOBkDCBjTAMBgNVHRMEBTADAQH/ +MB0GA1UdDgQWBBTxXVYCsHhW51huLYvBNP2qmGgKkzBRBgNVHSMESjBIgBTxXVYC +sHhW51huLYvBNP2qmGgKk6EapBgwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0GCFC+6 +T1cU1SOdPwgSW7FY+O9/ou2gMAsGA1UdDwQEAwIBBjAKBggqhkjOPQQDAgNHADBE +AiB6Xzx/88R329Qyi8sfnLi6kcGVWDAyppYSzSqR5EbnpAIgS1tgZ2TdSz6+6qU1 +g1FJMWdPb69N29C7v9CamUCp+X8= +-----END CERTIFICATE----- diff --git a/priv/sample_ssl_cert.crt b/priv/sample_ssl_cert.crt deleted file mode 100644 index 070adb2..0000000 --- a/priv/sample_ssl_cert.crt +++ /dev/null @@ -1,87 +0,0 @@ -Certificate: - Data: - Version: 3 (0x2) - Serial Number: - fa:ee:71:ac:9c:f8:5b:80:4d:ce:4b:d3:57:f8:32:09 - Signature Algorithm: sha256WithRSAEncryption - Issuer: CN=Easy-RSA CA - Validity - Not Before: Apr 25 15:34:18 2024 GMT - Not After : Aug 27 15:34:18 3023 GMT - Subject: CN=alttest - Subject Public Key Info: - Public Key Algorithm: rsaEncryption - Public-Key: (2048 bit) - Modulus: - 00:94:f6:7e:2b:41:ee:00:d6:f5:2f:54:66:f4:41: - 39:69:ee:64:0b:15:46:59:ce:00:b6:bf:2a:aa:f7: - 0e:75:c4:e5:a1:b7:b3:86:1c:24:06:fa:91:41:f1: - 0b:87:3a:ee:26:27:28:62:1d:ac:35:54:e5:a3:ac: - 48:a7:9a:aa:be:2e:60:52:7c:de:cf:c3:28:11:42: - 57:52:9d:44:24:8f:b0:b6:fb:36:ef:4f:aa:7e:2c: - 57:5e:07:8a:03:fc:18:03:e8:58:6b:88:98:a8:93: - ac:69:01:b1:9c:ef:3b:fe:04:47:9e:28:e2:c6:15: - f9:5c:df:de:24:1e:2f:a4:e0:b2:01:94:7e:b8:00: - 76:b0:dd:36:55:22:f2:2d:3a:c7:b1:d8:67:7e:ca: - 2d:22:b8:dc:9d:87:34:0c:c1:11:c7:72:2b:b8:ed: - 1b:d8:75:6d:0d:49:e1:f6:bf:12:dd:19:84:87:2e: - 6d:c6:7d:7e:42:33:2a:05:a2:ff:5d:07:10:83:a4: - c0:35:a9:f8:00:96:29:9f:bc:53:6c:81:18:7b:e4: - c6:41:54:7f:12:a3:5a:77:cb:0f:cf:52:8c:83:9a: - 30:03:ca:77:65:b2:c0:0b:00:67:86:50:77:b1:f5: - 79:b7:20:62:25:f8:3b:ca:cd:c4:da:d1:c0:81:fd: - db:8b - Exponent: 65537 (0x10001) - X509v3 extensions: - X509v3 Basic Constraints: - CA:FALSE - X509v3 Subject Key Identifier: - 04:2E:A0:68:00:D7:DB:D3:E5:73:93:FC:1C:E5:30:78:D1:5B:24:E8 - X509v3 Authority Key Identifier: - keyid:DB:4B:A9:95:2C:AD:05:9F:CF:C8:3C:DE:3B:2C:27:81:D7:28:65:48 - DirName:/CN=Easy-RSA CA - serial:66:32:E7:15:AE:20:E2:D7:6B:0E:3B:A3:50:C1:25:5A:45:69:14:A0 - X509v3 Extended Key Usage: - TLS Web Server Authentication - X509v3 Key Usage: - Digital Signature, Key Encipherment - X509v3 Subject Alternative Name: - DNS:localhost, IP Address:127.0.0.1 - Signature Algorithm: sha256WithRSAEncryption - Signature Value: - 41:35:5e:7e:14:46:96:3e:c9:8e:fe:88:f8:d6:07:6b:8b:b7: - 8e:02:c4:63:97:79:ec:4a:46:cc:72:4d:7a:cc:9b:13:d9:6b: - 5c:f9:b5:b6:c8:04:cf:f9:e0:23:b2:4e:ec:b0:80:85:84:be: - a9:1d:8d:4e:8b:26:09:d1:50:83:df:a2:d6:cc:ec:8c:36:b0: - c4:a9:cb:14:ba:2d:e2:f3:93:9a:e5:ae:fe:a6:b7:37:c2:17: - 52:17:b2:f3:4e:3a:04:88:9b:50:7e:c5:73:6f:63:5c:ab:32: - 47:0d:1c:b4:63:d4:de:c0:6b:ce:ec:26:8d:8c:40:83:c1:c2: - 29:48:f8:0f:a1:b1:f9:5e:2b:91:fb:0d:32:26:db:73:ef:36: - 03:d1:24:3e:59:8d:39:09:29:61:85:64:69:be:ee:ec:6d:dd: - 6d:7c:93:22:b5:44:19:ed:11:f5:46:7d:f5:be:74:ce:46:85: - 5d:24:9f:4e:b8:27:4b:7f:ba:72:5c:f7:24:10:b6:7b:fb:cb: - a0:d1:59:5b:d3:5f:e9:a3:e9:fd:c3:36:2f:b6:b5:eb:e6:1d: - 9b:71:d6:53:26:95:26:64:14:25:47:b8:3b:d4:96:be:51:98: - e5:4d:cf:47:66:e8:fc:e9:bc:e6:6c:2b:e6:87:d8:cb:64:82: - d8:63:31:c9 ------BEGIN CERTIFICATE----- -MIIDdDCCAlygAwIBAgIRAPrucayc+FuATc5L01f4MgkwDQYJKoZIhvcNAQELBQAw -FjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwIBcNMjQwNDI1MTUzNDE4WhgPMzAyMzA4 -MjcxNTM0MThaMBIxEDAOBgNVBAMMB2FsdHRlc3QwggEiMA0GCSqGSIb3DQEBAQUA -A4IBDwAwggEKAoIBAQCU9n4rQe4A1vUvVGb0QTlp7mQLFUZZzgC2vyqq9w51xOWh -t7OGHCQG+pFB8QuHOu4mJyhiHaw1VOWjrEinmqq+LmBSfN7PwygRQldSnUQkj7C2 -+zbvT6p+LFdeB4oD/BgD6FhriJiok6xpAbGc7zv+BEeeKOLGFflc394kHi+k4LIB -lH64AHaw3TZVIvItOsex2Gd+yi0iuNydhzQMwRHHciu47RvYdW0NSeH2vxLdGYSH -Lm3GfX5CMyoFov9dBxCDpMA1qfgAlimfvFNsgRh75MZBVH8So1p3yw/PUoyDmjAD -yndlssALAGeGUHex9Xm3IGIl+DvKzcTa0cCB/duLAgMBAAGjgb4wgbswCQYDVR0T -BAIwADAdBgNVHQ4EFgQUBC6gaADX29Plc5P8HOUweNFbJOgwUQYDVR0jBEowSIAU -20uplSytBZ/PyDzeOywngdcoZUihGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENB -ghRmMucVriDi12sOO6NQwSVaRWkUoDATBgNVHSUEDDAKBggrBgEFBQcDATALBgNV -HQ8EBAMCBaAwGgYDVR0RBBMwEYIJbG9jYWxob3N0hwR/AAABMA0GCSqGSIb3DQEB -CwUAA4IBAQBBNV5+FEaWPsmO/oj41gdri7eOAsRjl3nsSkbMck16zJsT2Wtc+bW2 -yATP+eAjsk7ssICFhL6pHY1OiyYJ0VCD36LWzOyMNrDEqcsUui3i85Oa5a7+prc3 -whdSF7LzTjoEiJtQfsVzb2NcqzJHDRy0Y9TewGvO7CaNjECDwcIpSPgPobH5XiuR -+w0yJttz7zYD0SQ+WY05CSlhhWRpvu7sbd1tfJMitUQZ7RH1Rn31vnTORoVdJJ9O -uCdLf7pyXPckELZ7+8ug0Vlb01/po+n9wzYvtrXr5h2bcdZTJpUmZBQlR7g71Ja+ -UZjlTc9HZuj86bzmbCvmh9jLZILYYzHJ ------END CERTIFICATE----- diff --git a/priv/sample_ssl_cert.key b/priv/sample_ssl_cert.key deleted file mode 100644 index c334f49..0000000 --- a/priv/sample_ssl_cert.key +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCU9n4rQe4A1vUv -VGb0QTlp7mQLFUZZzgC2vyqq9w51xOWht7OGHCQG+pFB8QuHOu4mJyhiHaw1VOWj -rEinmqq+LmBSfN7PwygRQldSnUQkj7C2+zbvT6p+LFdeB4oD/BgD6FhriJiok6xp -AbGc7zv+BEeeKOLGFflc394kHi+k4LIBlH64AHaw3TZVIvItOsex2Gd+yi0iuNyd -hzQMwRHHciu47RvYdW0NSeH2vxLdGYSHLm3GfX5CMyoFov9dBxCDpMA1qfgAlimf -vFNsgRh75MZBVH8So1p3yw/PUoyDmjADyndlssALAGeGUHex9Xm3IGIl+DvKzcTa -0cCB/duLAgMBAAECggEACbh+yeqG0iiKM3PPNsfoK+YnQnnkRLP8DpuG+Jp1UnDD -iLwTdlWbxut5qH3xrKTHKazge8FH8ur+rqGYKX0fAJjHfFqIXQfKiOXKtlTA6kne -KZ1XG7gX03Kn+ODbvCAqnlv+eSCe0FFirNo0HEjtofPm4IahKx//98mRa3X00fjQ -41+pwrtj5TBeHc8V9QiHDDTfAtUcRKbA3yPyla0xdHektCDak1U6CMoR/p55l+rM -2ffBHJA+wNc28NfxV+ZY1VbpZ0qszAp3/U+gQRn0P9+2scIAWzRBlmQ37EfAMmM8 -ciembbDpoi7/tMQ0UhrhCR/o5hatQwS8ACEuLC3ucQKBgQDLBGSvuGBvWYget/2+ -jhCjYyH5s0Pye0iCcUlZDIsi1RjtgQfXNo5J1yP7uaPHJ/3Saoohb844CD0+kLjS -tYpGSePL+q8HGnjfutjy0Xstew5peD6quc15G6gyfCBKdC39R9BfuC2emw9eZeiG -qRmGpFKwD3PDS5ZNz3HJ/WG41QKBgQC71rlMXGsnq63OVcKvw32Kn6XVsHXhoxFd -DWy43QbGqVV2Lk36/mr8iotBOV4BsofWD8Fx8447lhERuTi9NHSlIaAldnng0Eok -RoW+Lr6QbQanuLjM+NLhPcdrhZPrp4pHFUgnj2PjmLAngmvyaa4l/m88UvYVWPyK -vxUzNtNy3wKBgQCL9ZpoXib1fPbPnq6rOQuVaFla6NBWEdH6Q5l6b6BYQiruSb8b -CnxrwYsIFoInYZWmA1b5GDhF/sAiKumQMiGCtZv62vbhYcmlDA5W0D4oK6bS5Vfm -oTNbY8rACzzDt3ahH2ozIykoJ+QfgwgcFeYIIa7zu6NmJu0W9YWP6EP/hQKBgApq -Y6f6T+7JNEAGvV7lpiZzp8xrln3GfwX74pV1nBST+yssciKCzQfn3sTlG3NYpPOX -uBBLgw2GyreC38SODhHCBZFOOn/ezN2qE2xyRxrXENFoCsdC3N6kgFRT+dnNVnuO -kIuxBcbvBoWKU9YDSibNLvnXV9HjN02yPsiyN5NdAoGAZj0u++sJWrYzBeGDO0ew -a0GJnQK8/4NR+vJz/vvmL/lidfKOFJ5/lNANRha7ep89ig7G96ejabEitghIH9I7 -0+OxHz5uk+lidlTPxTg64ELlJnbsPzdI6QygeFVp8QqxEYgzB3zi8ropSoVIKVkB -2+9FJlDHUFB+PG7cbfR70a8= ------END PRIVATE KEY----- diff --git a/priv/sample_ssl_cert_brainpool.crt b/priv/sample_ssl_cert_brainpool.crt new file mode 100644 index 0000000..cc74561 --- /dev/null +++ b/priv/sample_ssl_cert_brainpool.crt @@ -0,0 +1,55 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 43:87:f5:72:45:69:50:8a:18:3b:85:38:5b:97:62:9a + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_brainpool + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:48:1f:79:cb:e3:73:e9:39:0e:46:05:48:cc:2f: + bd:98:bf:24:6c:99:86:90:87:4c:52:45:b8:e2:c5: + 31:9b:b0:59:99:a8:35:86:db:be:fa:a0:3c:07:3d: + bd:0c:d3:df:48:5c:fb:1a:6b:59:46:a2:fe:55:da: + 59:57:16:a1:57 + ASN1 OID: brainpoolP256r1 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 5B:B4:D4:02:E7:23:58:EE:8C:EE:ED:E6:EB:43:87:12:1D:CE:09:A6 + X509v3 Authority Key Identifier: + keyid:D9:C4:E7:78:53:16:10:DE:4A:AF:35:88:A6:65:9F:97:B6:39:12:A0 + DirName:/CN=Easy-RSA CA + serial:7F:98:14:CC:83:04:A4:58:4E:07:6A:DC:B2:42:64:5D:8F:38:C3:65 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0f:2a:88:54:92:5e:b1:db:a4:28:a4:d1:fb:a9: + e0:68:ed:0c:56:39:b7:9b:15:04:5c:57:4b:6d:81:e4:e9:08: + 02:20:7f:41:e0:34:3f:1b:61:45:42:7d:82:1a:63:c7:85:92: + 0b:11:ba:86:6c:cf:63:c0:a4:fa:bd:46:08:fc:86:bb +-----BEGIN CERTIFICATE----- +MIIB+TCCAaCgAwIBAgIQQ4f1ckVpUIoYO4U4W5dimjAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowJDEiMCAGA1UEAwwZc2FtcGxlX3NzbF9jZXJ0X2JyYWlucG9vbDBaMBQG +ByqGSM49AgEGCSskAwMCCAEBBwNCAARIH3nL43PpOQ5GBUjML72YvyRsmYaQh0xS +RbjixTGbsFmZqDWG2776oDwHPb0M099IXPsaa1lGov5V2llXFqFXo4G+MIG7MAkG +A1UdEwQCMAAwHQYDVR0OBBYEFFu01ALnI1jujO7t5utDhxIdzgmmMFEGA1UdIwRK +MEiAFNnE53hTFhDeSq81iKZln5e2ORKgoRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJT +QSBDQYIUf5gUzIMEpFhOB2rcskJkXY84w2UwEwYDVR0lBAwwCgYIKwYBBQUHAwEw +CwYDVR0PBAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjO +PQQDAgNHADBEAiAPKohUkl6x26QopNH7qeBo7QxWObebFQRcV0ttgeTpCAIgf0Hg +ND8bYUVCfYIaY8eFkgsRuoZsz2PApPq9Rgj8hrs= +-----END CERTIFICATE----- diff --git a/priv/sample_ssl_cert_brainpool.key b/priv/sample_ssl_cert_brainpool.key new file mode 100644 index 0000000..2350f39 --- /dev/null +++ b/priv/sample_ssl_cert_brainpool.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBCg0iIq8MTdwzFcdQ1D +fU3BAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQQcjYv+ECC9YaYNPp +k7Li5QSBkBjbJhQgp0U+qBeTQWBa81Q0Aq690O6nIpSqZG5OO2WlUCAPA/CdzGwU +4A3EsdY3Nq3lW3sagiqICFWb4Odf36dgu3tHPl42F12KKbDgATTj2zGyOu/AIgDT +8iCel31NP//cao0ly4r0jjF3zHEqTfexupFJuJRmE2QtGLONgCcyI6PgLb8ritPy +RN1NBk9Lfw== +-----END ENCRYPTED PRIVATE KEY----- diff --git a/priv/sample_ssl_cert_nist.crt b/priv/sample_ssl_cert_nist.crt new file mode 100644 index 0000000..4be90de --- /dev/null +++ b/priv/sample_ssl_cert_nist.crt @@ -0,0 +1,56 @@ +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 5d:16:ed:ad:8e:7d:bd:06:67:92:f1:85:c0:cc:3e:9b + Signature Algorithm: ecdsa-with-SHA256 + Issuer: CN=Easy-RSA CA + Validity + Not Before: Nov 5 15:52:30 2026 GMT + Not After : Mar 8 15:52:30 3026 GMT + Subject: CN=sample_ssl_cert_nist + Subject Public Key Info: + Public Key Algorithm: id-ecPublicKey + Public-Key: (256 bit) + pub: + 04:f9:22:e2:f6:39:e6:89:24:54:83:e9:c0:52:3b: + 99:c7:a9:41:8f:b1:ea:d2:63:f4:1d:a1:66:a8:f2: + 29:64:b2:32:b5:85:d3:52:1f:36:5c:cd:db:56:9e: + 5c:2d:ac:84:11:65:28:7c:ed:e0:89:3a:e2:23:0d: + 89:94:b2:08:6a + ASN1 OID: prime256v1 + NIST CURVE: P-256 + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Key Identifier: + 65:E0:C8:3D:92:BC:CA:96:87:E3:A8:A7:98:5D:E3:36:8F:85:38:A3 + X509v3 Authority Key Identifier: + keyid:F1:5D:56:02:B0:78:56:E7:58:6E:2D:8B:C1:34:FD:AA:98:68:0A:93 + DirName:/CN=Easy-RSA CA + serial:2F:BA:4F:57:14:D5:23:9D:3F:08:12:5B:B1:58:F8:EF:7F:A2:ED:A0 + X509v3 Extended Key Usage: + TLS Web Server Authentication + X509v3 Key Usage: + Digital Signature, Key Encipherment + X509v3 Subject Alternative Name: + DNS:localhost, IP Address:127.0.0.1 + Signature Algorithm: ecdsa-with-SHA256 + Signature Value: + 30:44:02:20:0d:6e:56:23:6d:2a:65:ea:ba:72:5a:ed:2b:1c: + cd:8a:e7:b9:47:1d:02:b3:c4:9e:fd:04:e1:4d:5d:5c:c5:60: + 02:20:79:30:1b:85:3b:c5:5e:16:03:c9:26:23:a5:31:17:fe: + 7f:27:76:36:db:7d:0f:58:ea:0c:d4:59:3c:b5:4f:e5 +-----BEGIN CERTIFICATE----- +MIIB8zCCAZqgAwIBAgIQXRbtrY59vQZnkvGFwMw+mzAKBggqhkjOPQQDAjAWMRQw +EgYDVQQDDAtFYXN5LVJTQSBDQTAgFw0yNjExMDUxNTUyMzBaGA8zMDI2MDMwODE1 +NTIzMFowHzEdMBsGA1UEAwwUc2FtcGxlX3NzbF9jZXJ0X25pc3QwWTATBgcqhkjO +PQIBBggqhkjOPQMBBwNCAAT5IuL2OeaJJFSD6cBSO5nHqUGPserSY/QdoWao8ilk +sjK1hdNSHzZczdtWnlwtrIQRZSh87eCJOuIjDYmUsghqo4G+MIG7MAkGA1UdEwQC +MAAwHQYDVR0OBBYEFGXgyD2SvMqWh+Oop5hd4zaPhTijMFEGA1UdIwRKMEiAFPFd +VgKweFbnWG4ti8E0/aqYaAqToRqkGDAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQYIU +L7pPVxTVI50/CBJbsVj473+i7aAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0P +BAQDAgWgMBoGA1UdEQQTMBGCCWxvY2FsaG9zdIcEfwAAATAKBggqhkjOPQQDAgNH +ADBEAiANblYjbSpl6rpyWu0rHM2K57lHHQKzxJ79BOFNXVzFYAIgeTAbhTvFXhYD +ySYjpTEX/n8ndjbbfQ9Y6gzUWTy1T+U= +-----END CERTIFICATE----- diff --git a/priv/sample_ssl_cert_nist.key b/priv/sample_ssl_cert_nist.key new file mode 100644 index 0000000..9f8a8dc --- /dev/null +++ b/priv/sample_ssl_cert_nist.key @@ -0,0 +1,8 @@ +-----BEGIN ENCRYPTED PRIVATE KEY----- +MIH0MF8GCSqGSIb3DQEFDTBSMDEGCSqGSIb3DQEFDDAkBBA3sgZkchLxGQjPJ1zR +NB0YAgIIADAMBggqhkiG9w0CCQUAMB0GCWCGSAFlAwQBKgQQ4v44Jsn5XLAskeV+ +oVuHcgSBkPY+rIAo2hMFakx5494XiMSfc301ef63TQR+X2NjFpCsi5GPrcw8f12D +ner42rmIzbmkZ9vvSbMfXrvOfV7cocY3/qhPEyz9RXeZqcr9Dlwd/sIxhPcKK4Yj +zARGmDCpNvcK83syfO90seSIOkj6fRCRJaC9dkcLOunbt4+pYwoLLrISh+vm40PX +cInen8A9Kw== +-----END ENCRYPTED PRIVATE KEY----- -- To view, visit https://gerrit.osmocom.org/c/onomondo-eim/+/44033?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: onomondo-eim Gerrit-Branch: master Gerrit-Change-Id: Ie75293e5177ccacc45e11d85ef526159e999b7bb Gerrit-Change-Number: 44033 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier@sysmocom.de>
participants (1)
-
dexter