From 687707f685b20dfff9c4e5efa924d27eb5a58854 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Thu, 28 Nov 2024 11:32:24 -0800 Subject: [PATCH] Generate new creds --- .builder/actions/tls_server_setup.py | 12 ++++++------ tests/resources/tls13.csr | 17 ++++++++++++++++ tests/resources/tls13.key | 28 +++++++++++++++++++++++++++ tests/resources/tls13.pem.crt | 21 ++++++++++++++++++++ tests/resources/tls13_root_ca.pem.crt | 22 +++++++++++++++++++++ tests/resources/tls13_root_ca.pem.srl | 1 + tests/resources/tls13_root_ca_key.key | 28 +++++++++++++++++++++++++++ 7 files changed, 123 insertions(+), 6 deletions(-) create mode 100644 tests/resources/tls13.csr create mode 100644 tests/resources/tls13.key create mode 100644 tests/resources/tls13.pem.crt create mode 100644 tests/resources/tls13_root_ca.pem.crt create mode 100644 tests/resources/tls13_root_ca.pem.srl create mode 100644 tests/resources/tls13_root_ca_key.key diff --git a/.builder/actions/tls_server_setup.py b/.builder/actions/tls_server_setup.py index 60a2fcbdc..cbe0aba7b 100644 --- a/.builder/actions/tls_server_setup.py +++ b/.builder/actions/tls_server_setup.py @@ -69,9 +69,9 @@ def run(self, env): p = subprocess.Popen(["openssl.exe", "s_server", "-accept", "127.0.0.1:59443", - "-key", "server.key", - "-cert", "server.crt", - "-CAfile", "server_chain.crt", + "-key", "tls13.key", + "-cert", "tls13.pem.crt", + "-CAfile", "tls13_root_ca.pem.crt", "-alpn", "x-amzn-mqtt-ca", "-debug", "-state", ], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) @@ -81,9 +81,9 @@ def run(self, env): p2 = subprocess.Popen(["openssl.exe", "s_client", "-connect", "127.0.0.1:59443", - "-key", "server.key", - "-cert", "server.crt", - "-CAfile", "server_chain.crt", + "-key", "tls13.key", + "-cert", "tls13.pem.crt", + "-CAfile", "tls13_root_ca.pem.crt", "-debug", "-state", "-servername", "localhost", ], cwd=dir, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) diff --git a/tests/resources/tls13.csr b/tests/resources/tls13.csr new file mode 100644 index 000000000..031e1ed2a --- /dev/null +++ b/tests/resources/tls13.csr @@ -0,0 +1,17 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIICnjCCAYYCAQAwWTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx +ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDESMBAGA1UEAwwJbG9j +YWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1xyI4uKozYl5 +Mp6SjPmkVhoNV/uRIqbm4g74yuUA71+E3PqowWHqb4Ob7VpnbyFDjIfcIdLhdyLV +J6YWQzLO/qzcDXXXH8Fg08NgHdxU8CeGiLdwZ7oAvLtkupS0Dr0MTN2JRL/Z8HJN +H3HzNHufUoy+DR8lf5PdcJIMO5DQ1EOqHCZMKdpnA7V9Whssl5m0q7Q+atL1vTLm +qxQteTAXbkyxtTxMiV9fVKeqFdbJG0QD6foPyzRgca1vu6jAor83ehJS81ENtRRT +8/yTFngywiiyugrnowagtN9FG9N+za9EkmNr0HKcBaeg3LREwWCfUxmoJ1z/5i4R +N6F+saoyWQIDAQABoAAwDQYJKoZIhvcNAQELBQADggEBAAOlKzwzPVNYY6XeVsNU +xY7h16CBy0hvnHbCNyFmIavsJhVqGMEOUsbzcEKTlmGos5YtxzXiMZd2doOUtyry +adstxnZE5niT+zfBSyIccoLJ/hG91f/ga39O5d+XQiEbYMCMNRUksc1SgGQcG3YW ++Tc3MZ7qnDCQyo2pDOIguGhZsKwbY8vzRr9UtkEhQ0a8XuaeTHvuuYulVTsZ0qKb +6/bzn4fvH3Bt3NNmbhTCHrXlIUH/CBlN3o1Foi5L8oCTNrPpMkvOoaTvwFQmyGa8 +6/MCLqLLHZW8Mtf7AiQR3mDj/gCFm/2mxO0BGR18st9vHMen4FeH42d2clXOqXrT +6so= +-----END CERTIFICATE REQUEST----- diff --git a/tests/resources/tls13.key b/tests/resources/tls13.key new file mode 100644 index 000000000..d80263c59 --- /dev/null +++ b/tests/resources/tls13.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDXHIji4qjNiXky +npKM+aRWGg1X+5EipubiDvjK5QDvX4Tc+qjBYepvg5vtWmdvIUOMh9wh0uF3ItUn +phZDMs7+rNwNddcfwWDTw2Ad3FTwJ4aIt3BnugC8u2S6lLQOvQxM3YlEv9nwck0f +cfM0e59SjL4NHyV/k91wkgw7kNDUQ6ocJkwp2mcDtX1aGyyXmbSrtD5q0vW9Muar +FC15MBduTLG1PEyJX19Up6oV1skbRAPp+g/LNGBxrW+7qMCivzd6ElLzUQ21FFPz +/JMWeDLCKLK6CuejBqC030Ub037Nr0SSY2vQcpwFp6DctETBYJ9TGagnXP/mLhE3 +oX6xqjJZAgMBAAECggEAA4EN6MuXmNuLBiGnp6oUZ35T+9GCXH26spwwU4EgqgWU +u5MjZx0MzYVnvO7VUwMyyhSs0mnl7YPQ1EJux+hJZMQqRIIy1NauA10Xe9JgRCuR +/o2lxDF3PBvTCP1i+SooC7jVzjEliswYiLEu7KAGk84XoCKYVjLxhJktylWc/+wq +RrYGnSuXSz+Aww8pib6IPkAG5sWu1U4t76JkcCTAVJTSZRuyhjt1FzgESqrD7MeC +jnWCveH20DGG6DPkWFaa40H81vrQ0xlUTDHaa/ZKQTTFJjQVAAgd6QFIeT2HDOme +UyeW2Y4zfCttEdgwnX10nevZxCRLz//1aNemyTtVVQKBgQDsG9Wr1E9iBlnUgL+D +zz+Wk8cNOJ7L+TsVkCN5A8wMVmITwh64+uCeUQF6P7o6KS7LimwrAhU1B/Cw72Vr +pANuI1p/m0Bw9tSwfFZyxc+urS6Jsxy5Clmzb29DwzDg5UeF7bqx9+1jKeEHH9he +UdP/nnSgGLrEuE+0bDEhnUCrDQKBgQDpO9nuKQMa2XpFVvLEHx7fGY9vtekK2thn +5nyMH+YZCqa9sv0NcuIcbvN/dr1l6QGd0ELj1QCMgwOPcYd7YwTzCSyzo5pH6qIt +vibylCZBgATs/CoFkHl3CylFbA7p+hHNNIQdyQBi9A5mwbFJU9srseUSSkmZKtib +8rsCNLIhfQKBgQDdk1WXVrxUsr8UlOqlyRXUusQ/nRYxN6iCGO2hQLX6Egsinbb1 +Q8MN79liH3Il6MYYj8PpLKA4T0ZK1a8pMBdkAduJC2qTWKDLKzR5qze2pqGY6jUX +ViZOJVKWlhRFygWwIyRkpdXqjL+4TuNfyI0aQ1sRb4O+33U1TZ9h+1BX9QKBgQC6 +HmLYZK3vnSCveKUd0F/IVRNbZ+TiHqWWtB0rjMEHtrI8qzq4orbBTeDOFKkrS/dY +Qjs+qFlZx6rtqwEce3YVo3qil6mkPh7RNe7KoWKt3kUQAGJgMlxbnPKATazRFhdi +k8fiJOZEENH1OhgJlftOMRXFtLZqngBg4iBNsFN92QKBgQDr3m0Y2das128uopoY +OE048GIR/+n03kA0D86T9MtAt659ZfiaeXiCIVhj695Wj/KgteIuWfBO14hFu7nG +3RkCVcD20SCHQJWCGm086oNmwy1+Dkk6vSeW4vGGeVgMDkoTlghxX0JHgD9BOSop +NO7udLVlp9ELazzOi8XXgb4yQQ== +-----END PRIVATE KEY----- diff --git a/tests/resources/tls13.pem.crt b/tests/resources/tls13.pem.crt new file mode 100644 index 000000000..c046aff4c --- /dev/null +++ b/tests/resources/tls13.pem.crt @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDgjCCAmqgAwIBAgIUOctPMK00J5bniIY9mmsFJWk8k38wDQYJKoZIhvcNAQEL +BQAwWTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM +GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDESMBAGA1UEAwwJbG9jYWxob3N0MB4X +DTI0MTEyODE5MzAyMVoXDTI2MDQxMjE5MzAyMVowWTELMAkGA1UEBhMCQVUxEzAR +BgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5 +IEx0ZDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A +MIIBCgKCAQEA1xyI4uKozYl5Mp6SjPmkVhoNV/uRIqbm4g74yuUA71+E3PqowWHq +b4Ob7VpnbyFDjIfcIdLhdyLVJ6YWQzLO/qzcDXXXH8Fg08NgHdxU8CeGiLdwZ7oA +vLtkupS0Dr0MTN2JRL/Z8HJNH3HzNHufUoy+DR8lf5PdcJIMO5DQ1EOqHCZMKdpn +A7V9Whssl5m0q7Q+atL1vTLmqxQteTAXbkyxtTxMiV9fVKeqFdbJG0QD6foPyzRg +ca1vu6jAor83ehJS81ENtRRT8/yTFngywiiyugrnowagtN9FG9N+za9EkmNr0HKc +Baeg3LREwWCfUxmoJ1z/5i4RN6F+saoyWQIDAQABo0IwQDAdBgNVHQ4EFgQUPgYl +jvtHJK4hsHb8GkfWW8EZG3EwHwYDVR0jBBgwFoAU5jQ+o5LZkyZrWXcsJn2sUS74 +z7QwDQYJKoZIhvcNAQELBQADggEBAGmFiI1sZaen7ht8sNjwH7YKYKEC+NadETCc +Pz3hoPUtmeppUNEUao6iGwSlYug3NBHHvPtYxQxuRsaEjXIhNzktc4/HugQy/IRG +N+lfbbYC12o7otZWuMa4bL4Pijw1WdhZi/BNWh/Y88xlwxQ7yR/VzaB7yvncg52u +SAmRDSRMnboyf7rBGuUgOep6Rx5ZmgJu/AQ1HE5hOcrUxNhOVCyKNzKXBODZ6/ko +ePWFzknZLJgB8cNzHAAp5zAmhoMuKQ7ZKieG8dKAg+jL0UrFL9iQ9aSeaC8mKl28 +U4L8XSmxOHDdcMk0LZbbj/8uuiYKOzEwSzFGGox1NxBG5sCIi+w= +-----END CERTIFICATE----- diff --git a/tests/resources/tls13_root_ca.pem.crt b/tests/resources/tls13_root_ca.pem.crt new file mode 100644 index 000000000..78a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WsLDpXEJiPHubocXAO+E8gKAg5kl7ablxwUwHxWxh +2fnRZTWS79s4MQ8C38fTXZUBq87srgNwtt5JOqko1YXzrcvgUdorLYSB5bhimk/l +tODnCQZf76wjiUasFM+9jOTMWduqQBUhz6K54+51r8nRftFwGOgyl7w1QktRa0Vl +y4muHF6EFYW1w2Rfv6qNrF8BMGbzw//qmOV2DM2nOyFs6Lm4k0Hmy2qeIOl+f8is +UA4ESf1ZGQ== +-----END CERTIFICATE----- diff --git a/tests/resources/tls13_root_ca.pem.srl b/tests/resources/tls13_root_ca.pem.srl new file mode 100644 index 000000000..a27f93b20 --- /dev/null +++ b/tests/resources/tls13_root_ca.pem.srl @@ -0,0 +1 @@ +39CB4F30AD342796E788863D9A6B0525693C937F diff --git a/tests/resources/tls13_root_ca_key.key b/tests/resources/tls13_root_ca_key.key new file mode 100644 index 000000000..b6d26b9d6 --- /dev/null +++ b/tests/resources/tls13_root_ca_key.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDId9gVoxGUbso8 +weePq797UHuokImVsSBZepW1df2H/JZ+j1u6rePKweQ9cb/XlmzVWKV5YemYkqBT +t9SFC6QBxjZJqNoJ3ux5VyX467oF7yWj6/tqHgYzckYVnJ3AUzhd1QlNVXhOLcFi +B0dYemdoXAz+4Yyafe+WBRyiySNrJ8sVswUwydKyuuwdNaGtoUKPksgVBkd3q04K +qhIKNyOp2H3z2FPiaISyOgvPxCbmXe7qeF/OjsDRrQuuhBdIJp9P++syfGv+2kDL +eKvsHgvtxQDuMAJanzkzwfRrDp4IM2f9Mh7tphXczB6kXv0ZAl7WLWpPRTAjJzH3 +6aJ6nAIrAgMBAAECggEAFDIytFdV3ZDd0gos9IX2iAtfMefB3LFYE3usmnf1H16c +oMp7kM6U/OfUwTX1AFi4xTOllBl/qa3X9ic2g2LdVopsDLa0pLrvMvhLLI0/E/r4 +XU/YZ+P3dvZ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