Python filenames
Go to solution
Solved by Adraen,
14 minutes ago, LukaP said:context.load_cert_chain(certfile="[].pem".format(username), keyfile="[]key.pem".format(username))
Sounds like a fun project!, You are using the wrong syntax for the string form, change [] to {} as shown below
>>> username = "hello" >>> "[].pem".format(username) '[].pem' >>> "{}.pem".format(username) 'hello.pem' >>>
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now