Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SSLContext for mTLS
#1
Hello,

I need to sign my http request using a cert and a key.

ctx = ssl.create_default_context()
ctx.load_cert_chain(certfile="C:/test.crt", keyfile="C:/privateKey.key")
that code works, but I would like to use string variables with the cert data from AWS store parameters to load the cert chain instead of using files.

Let me know if there is a way to use string variables?

thanks
Vali
buran write Apr-05-2023, 07:59 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020