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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.