Skip to content

Commit

Permalink
Use secretsmanager endpoint in test script
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Jul 31, 2024
1 parent 40eef23 commit 211355b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import ssl
import socket

assert "AWS-LC" in ssl.OPENSSL_VERSION

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"
host = "secretsmanager.us-east-1.amazonaws.com"
sock = socket.create_connection((host, 443))
ssock = ctx.wrap_socket(sock, server_hostname=host)
ssock.close()
Expand Down

0 comments on commit 211355b

Please sign in to comment.