kyoukhana
By:
kyoukhana

SSL private key

May 31, 2017 111 views
Security Ubuntu 16.04

I am trying to find my private SSL key on the server is there a command to do this? So it will output the private key.

2 Answers

@kyoukhana

If it was generated by Let's Encrypt, your key files will be within the /etc/letsencrypt directory. If you didn't use Let's Encrypt, they'd be in the location you placed them in when you setup your cert.

You should be able to look at your VirtualHost or Server Block configuration to find the exact path of the cert and the private key though.

Your configuration would be in either:

/etc/apache2/sites-available

or

/etc/nginx/sites-available
Have another answer? Share your knowledge.