diff --git a/xt/certs-and-keys/ca-crt.pem b/xt/certs-and-keys/ca-crt.pem index 759fe04..4981b88 100644 --- a/xt/certs-and-keys/ca-crt.pem +++ b/xt/certs-and-keys/ca-crt.pem @@ -1,32 +1,32 @@ -----BEGIN CERTIFICATE----- -MIIFlTCCA30CFE+PvS43SSIUD/GeXX7wHwbd1HfFMA0GCSqGSIb3DQEBCwUAMIGG +MIIFlTCCA30CFFHFks1TL46IJUx/ZZ4aH1O/OpXeMA0GCSqGSIb3DQEBCwUAMIGG MQswCQYDVQQGEwJDWjEYMBYGA1UECAwPQ2VudHJhbCBCb2hlbWlhMQ8wDQYDVQQH DAZQcmFndWUxCzAJBgNVBAoMAkNBMQswCQYDVQQLDAJJVDESMBAGA1UEAwwJbG9j -YWxob3N0MR4wHAYJKoZIhvcNAQkBFg9mb29AZXhhbXBsZS5uZXQwHhcNMjIxMDMx -MTc0NjIwWhcNMjMxMDMxMTc0NjIwWjCBhjELMAkGA1UEBhMCQ1oxGDAWBgNVBAgM +YWxob3N0MR4wHAYJKoZIhvcNAQkBFg9mb29AZXhhbXBsZS5uZXQwHhcNMjQwNzE4 +MTI0ODQyWhcNMjUwNzE4MTI0ODQyWjCBhjELMAkGA1UEBhMCQ1oxGDAWBgNVBAgM D0NlbnRyYWwgQm9oZW1pYTEPMA0GA1UEBwwGUHJhZ3VlMQswCQYDVQQKDAJDQTEL MAkGA1UECwwCSVQxEjAQBgNVBAMMCWxvY2FsaG9zdDEeMBwGCSqGSIb3DQEJARYP Zm9vQGV4YW1wbGUubmV0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA -vX/5oYUty4ytpcs8k0xei99NDuXAZ3OX97SHasmbGW65CJaXHIkeZQOGcfUiM0ul -4GmzrtV9LkPkc6gmsKcG2g1QlAmVM2IHcdcXOwVhD2FR9Wid127YWu9tkeRUh/xV -Jt0mjEimRCyojzmIJR03DdzFoIbWvmWU1EV3ATYHkiRS+Qh/UljXlM+rUb4KIVBq -3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CIW +52iPsz+o1ZyzA2W42msPOulSMBVXeLCxmpY7ASHde6P5gE94kUgD0L1Rai5AcL47 +HTysidDJZDF2rhXB1ExugiZHZeR3DRz1Rm7Br2/03psLG08j89TOiV+VAF8gvT6l +kZ0WG98W5Q8azFt72nBbp4h8ag2oNrc2VuMJyMzMQJJFwhiCbuy8zjLfTgwM9hDy +TCMMOBqV81xN9E4XzdwAK3zAUGWiIHLgKQzSdx8x+9fMMx2gAGXcW5m92UsB7jCQ +PZvwJBXgQMmoqcENXGqpXi5z5st9eizyw3d8tGCrESi37Nfn74J/gsWwDG5V5UFi +l0d5UzVPD4QK2SC/Y06qiwwyi0DOmYetm3NrZ3UsUPW2Zo5EC90CBVU8n5YLPhMs +iztd0/HXkQwsH4zR3I8N0Z5hxREjp3pbNCcnesq8xjrhl4AdUJnBlrEMJuPj9Lcc +dz/IoRLqLGQQYraB1JNgHbLtKdOFQ80uOtw/s/hiCyQsgwsPVAOY6b4= -----END CERTIFICATE----- diff --git a/xt/certs-and-keys/my.conf b/xt/certs-and-keys/my.conf new file mode 100644 index 0000000..ac035fc --- /dev/null +++ b/xt/certs-and-keys/my.conf @@ -0,0 +1,21 @@ +[req] +default_bits = 4096 +prompt = no +default_md = sha256 +req_extensions = req_ext +distinguished_name = dn + +[dn] +C = CZ +ST = Central Bohemia +L = Prague +O = CA +OU = IT +CN = localhost +emailAddress = foo@example.net + +[req_ext] +subjectAltName = @alt_names + +[alt_names] +DNS.1 = localhost diff --git a/xt/certs-and-keys/server-crt.pem b/xt/certs-and-keys/server-crt.pem index 626653e..0321f67 100644 --- a/xt/certs-and-keys/server-crt.pem +++ b/xt/certs-and-keys/server-crt.pem @@ -1,37 +1,33 @@ -----BEGIN CERTIFICATE----- -MIIGiTCCBHGgAwIBAgIUBxjJlQLyHLF9qA4Ud3zPzYReLw0wDQYJKoZIhvcNAQEL +MIIFtTCCA52gAwIBAgIUNw3+PPkeLwOZb5U+4bTxdNXdHogwDQYJKoZIhvcNAQEL BQ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TxoNnwCkaCBq3w5y3D57dYcwP7NOWldztcFYPmxh5myF5xBRIlwMhyO +Usugk0WrI2T3vz0nE8qlQw1OWpbZhNRsOukrq7zw0xk5/l0F0J997d7tgL2+DCWE +yaWjBTYcDu2K3s7bMpBsjHuXUwtBaiTiCsyQn4tZtDualu0CLZZ1v8yjbUCwnehh +wxLn5qVj9LxirgvW8TsmwjHLT7JsgBHlepVJdPhs9OTxaI++0HQH+3LPNoFa7wRJ +JkhDtI2oYqTnMiGqiV11y/ERbyojlUEnKOi3UCpCpKoILncJ4Mkw+UqqqDRlP07l +FU54iiEUdTzdutt+8gQWEy018VryCt6sopmSFvrPMU9142bLF1UOfeVWCgBA3e/j +AP9mZdv6NmwO3/69f9Usk80lKoxrca9/Ni9ew9ParUHqpA/VC/nE3gDoC7pmSIaH +lKpuMVBg2popx7H+BhPHTCXYBHX/L8odAJkJ0JzafAeCyfysMLa4uNAmTwmFomfG +m5Fr0K7r2xjlDP9HWXt3gTsO6ww5D4CAhQ== -----END CERTIFICATE----- diff --git a/xt/certs-and-keys/server-key.pem b/xt/certs-and-keys/server-key.pem index 0fc5939..e9e5bb7 100644 --- a/xt/certs-and-keys/server-key.pem +++ b/xt/certs-and-keys/server-key.pem @@ -1,52 +1,52 @@ -----BEGIN PRIVATE KEY----- -MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQDJGGZLZvEnRuo9 -uhBovP5zXWxxajgtDQA6pS5jF8G/6CNdPFkauIC8yWAw+pkkMLRxnYYe2xbJy2my -55vWiqG0loYjkWf7JEQfwJZmhpJ91p0AwYDHkuqJryHL4xiggkVMdVXpZB6L+eEQ -GnsmzWbG2gBnXjAdT06ud0tlGruM9eXN5Wgd3uXiRk3AtyDHkLjIxmuPFWwh3sc5 -CkrjkUSuQgND8g2Z6MZFlKpN4peB7lr+S/FgH0JpzEBV3fVrOCLPUXOATu7IM6Jb -fXgoQZ8Bm9zX7wz+NiebqD/zzW4jNrqfd1w0Mzleisbi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GaECggEAD5Zv2rJFVFg/vDRkWe7R +bf6k+2hrlDwT5YHtA4mSpPtynO7cWEcYdiujqEyJ3X/4621CBG4d5JXxdfjBGx4W +QvVPwh0YorwewegZnqis5CKVq+MKJXy9eBFG7T+h9V0AqCrl2f+JKREBuuxq4dur +Ft94ef12eotp/aR2GVSSdbBvIIKcPHVq0BPnjlD/pv2YhIS+ILafk8tPzLnRum9U +SvlIBH/g1tEcQuQt5cZtNSPmZ79yL2SKi6EtIuWDTxJ5IqNGBLkroSrXLZOa8AXh +VxScVeyMcnuvVd76ulmiCmwuw6MiG5Vk/R6IRfHbEybRUcyH02Ba6O+fcTOKdUY8 +lwKCAQAiJAGOwO0G+4b9H/EhcUKGbkEONlxq+XeelxgCHk6Ww/xrQ8TY6nUU9fm3 +twKdfwWOqcyzFjyriHhgJbDUJCHgk7WSCUmcHkSqAlCei6fvpw1+J0CbeONNMhqJ +gvR9fNr0XAwRq6TGHBHOFvFj8AVVLj3EfbIgfgD7OTF8c2hS1ErqJlMg6Q1ADZHw +vL4y13QejHrhTSIMYquj0PsFRNbwLzSMtngZeZNRQ3TXyp6QW4j1+qlXtOmeB5ST +NAUOGiRoC9Nd/LRgiVaiuZip9ZPq0Gr11iby5gAjsA+a8jNTzkZ1d66cBG3y16nA +k1caDuZzgpmLU/W4mS2lqROwfMsb -----END PRIVATE KEY----- diff --git a/xt/certs-and-keys/tls.sh b/xt/certs-and-keys/tls.sh new file mode 100755 index 0000000..6c00ffe --- /dev/null +++ b/xt/certs-and-keys/tls.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# Generate self signed root CA cert +openssl req -days 365 -config my.conf -nodes -x509 -newkey rsa:4096 -keyout ca.key -out ca-crt.pem -subj "/C=CZ/ST=Central Bohemia/L=Prague/O=CA/OU=IT/CN=localhost/emailAddress=foo@example.net" + +# Generate server cert to be signed +openssl req -nodes -newkey rsa:4096 -keyout server-key.pem -out server.csr -subj "/C=CZ/ST=Central Bohemia/L=Prague/O=foo/OU=IT/CN=localhost/emailAddress=foo@example.net" + +# Sign the server cert +openssl x509 -req -days 365 -in server.csr -CA ca-crt.pem -CAkey ca.key -CAcreateserial -out server-crt.pem -extensions req_ext -extfile my.conf + +# Clean up extra files +rm ca-crt.srl ca.key server.csr + +# Verify certs validate correctly +echo "-----" +echo "Verifying certs" +openssl verify -CAfile ca-crt.pem ca-crt.pem +openssl verify -CAfile ca-crt.pem server-crt.pem