From 7bb8f1d65867c4d02f7dcb391a08aa70cb5886e7 Mon Sep 17 00:00:00 2001 From: WillChilds-Klein Date: Wed, 31 Jul 2024 16:27:07 +0000 Subject: [PATCH] Add PQ TLS test script --- test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 000000000000000..f030289ec6e5a11 --- /dev/null +++ b/test.py @@ -0,0 +1,12 @@ +import ssl +import socket + +ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) +ctx.set_ecdh_curve("X25519Kyber768Draft00") +ctx.load_verify_locations("/etc/ssl/certs/ca-certificates.crt") + +host = "kms.us-east-1.amazonaws.com" +sock = socket.create_connection((host, 443)) +ssock = ctx.wrap_socket(sock, server_hostname=host) +ssock.close() +print("succes!")