Skip to content

Commit

Permalink
Add PQ TLS test script
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Jul 31, 2024
1 parent bd3d31f commit 7bb8f1d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -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!")

0 comments on commit 7bb8f1d

Please sign in to comment.