chris2511 / xca

X Certificate and Key management
http://xca.hohnstaedt.de
Other
1.54k stars 204 forks source link

.Key file generation #486

Closed Paul9929 closed 9 months ago

Paul9929 commented 1 year ago

Hi I'm new to certificates but am starting to learn the hard way. What I need to accomplish is a self signed certificate with a password private key file with the file extension .key. The end goal is TLS for MQTT Client and Broker. Not sure if this is possible with XCA?

Thank you.

chris2511 commented 1 year ago

It is possible with XCA. Actually, this is exactly what XCA was made for :-) mosquitto doc says:

  keyfile file path
           Path to the PEM encoded server key.

Export the private key in PEM format (unencrypted, otherwise you need to enter the password when restarting the server) and name it as you like, for example server.key.