Skip to content

Commit

Permalink
Generate new creds
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 28, 2024
1 parent fd4c494 commit 687707f
Show file tree
Hide file tree
Showing 7 changed files with 123 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .builder/actions/tls_server_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
17 changes: 17 additions & 0 deletions tests/resources/tls13.csr
Original file line number Diff line number Diff line change
@@ -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-----
28 changes: 28 additions & 0 deletions tests/resources/tls13.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDXHIji4qjNiXky
npKM+aRWGg1X+5EipubiDvjK5QDvX4Tc+qjBYepvg5vtWmdvIUOMh9wh0uF3ItUn
phZDMs7+rNwNddcfwWDTw2Ad3FTwJ4aIt3BnugC8u2S6lLQOvQxM3YlEv9nwck0f
cfM0e59SjL4NHyV/k91wkgw7kNDUQ6ocJkwp2mcDtX1aGyyXmbSrtD5q0vW9Muar
FC15MBduTLG1PEyJX19Up6oV1skbRAPp+g/LNGBxrW+7qMCivzd6ElLzUQ21FFPz
/JMWeDLCKLK6CuejBqC030Ub037Nr0SSY2vQcpw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i
k8fiJOZEENH1OhgJlftOMRXFtLZqngBg4iBNsFN92QKBgQDr3m0Y2das128uopoY
OE048GIR/+n03kA0D86T9MtAt659ZfiaeXiCIVhj695Wj/KgteIuWfBO14hFu7nG
3RkCVcD20SCHQJWCGm086oNmwy1+Dkk6vSeW4vGGeVgMDkoTlghxX0JHgD9BOSop
NO7udLVlp9ELazzOi8XXgb4yQQ==
-----END PRIVATE KEY-----
21 changes: 21 additions & 0 deletions tests/resources/tls13.pem.crt
Original file line number Diff line number Diff line change
@@ -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-----
22 changes: 22 additions & 0 deletions tests/resources/tls13_root_ca.pem.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDkzCCAnugAwIBAgIUXjGnAjjR1Z5b0foF4E8M7hen6MAwDQYJKoZIhvcNAQEL
BQAwWTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDESMBAGA1UEAwwJbG9jYWxob3N0MB4X
DTI0MTEyODE5MjMwOFoXDTI3MDkxODE5MjMwOFowWTELMAkGA1UEBhMCQVUxEzAR
BgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5
IEx0ZDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEAyHfYFaMRlG7KPMHnj6u/e1B7qJCJlbEgWXqVtXX9h/yWfo9buq3j
ysHkPXG/15Zs1VileWHpmJKgU7fUhQukAcY2SajaCd7seVcl+Ou6Be8lo+v7ah4G
M3JGFZydwFM4XdUJTVV4Ti3BYgdHWHpnaFwM/uGMmn3vlgUcoskjayfLFbMFMMnS
srrsHTWhraFCj5LIFQZHd6tOCqoSCjcjqdh989hT4miEsjoLz8Qm5l3u6nhfzo7A
0a0LroQXSCafT/vrMnxr/tpAy3ir7B4L7cUA7jACWp85M8H0aw6eCDNn/TIe7aYV
3MwepF79GQJe1i1qT0UwIycx9+miepwCKwIDAQABo1MwUTAdBgNVHQ4EFgQU5jQ+
o5LZkyZrWXcsJn2sUS74z7QwHwYDVR0jBBgwFoAU5jQ+o5LZkyZrWXcsJn2sUS74
z7QwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAqfwjejRn/DcR
dslSD02gMyBHnaf2WpvKStUZvvgoHWPmfoaJKs+ZC/hl3ymDo6j3IrxIxccr8aht
14j7mNbNSjCrOXuBPQReLpkWsLDpXEJiPHubocXAO+E8gKAg5kl7ablxwUwHxWxh
2fnRZTWS79s4MQ8C38fTXZUBq87srgNwtt5JOqko1YXzrcvgUdorLYSB5bhimk/l
tODnCQZf76wjiUasFM+9jOTMWduqQBUhz6K54+51r8nRftFwGOgyl7w1QktRa0Vl
y4muHF6EFYW1w2Rfv6qNrF8BMGbzw//qmOV2DM2nOyFs6Lm4k0Hmy2qeIOl+f8is
UA4ESf1ZGQ==
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions tests/resources/tls13_root_ca.pem.srl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
39CB4F30AD342796E788863D9A6B0525693C937F
28 changes: 28 additions & 0 deletions tests/resources/tls13_root_ca_key.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDId9gVoxGUbso8
weePq797UHuokImVsSBZepW1df2H/JZ+j1u6rePKweQ9cb/XlmzVWKV5YemYkqB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