Python filenames
By
LukaP
in Programming
in Programming
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' >>>
-
Topics
-
0
-
zamplex ·
Posted in Servers, NAS, and Home Lab7 -
0
-
Chaos Network ·
Posted in Graphics Cards3 -
2
-
Los_Jackal ·
Posted in Storage Devices6 -
TurboTrym ·
Posted in Programs, Apps and Websites1 -
Pepegovich ·
Posted in Troubleshooting0 -
8
-
Crystalized King ·
Posted in Graphics Cards2
-
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