4

I accidentally replaced the entire contents of my /etc/ssl folder, which had three things:

  1. certs folder with all CA-Certificates
  2. openssl config file
  3. private folder

I restored the certs folder by following this: Problem with certificates

I am assuming that openssl.cnf file is also default, so i can get that as well.

But, the private folder is still missing(and i understand that i cant get it back). My fear is:

  1. Is that the private key of my machine?
  2. What should be the consequences of not having the private folder?
  3. Can that be regenerated?

1 Answers1

2

/etc/ssl/private is one place meant to store your private keys. It is generally empty unless you put something into it. As you dont remember putting anything into it, you are probably fine.

PHP/Apache does NOT use this location for it ssl private keys. It uses /etc/apache2/ssl/private. SSH keys are stored in /etc/ssh/.

Overall it looks you can get away with this one :D

  • "(and i understand that i cant get it back)" you missed this in the question. Please add in an instruction for recreating it and he is good to go. – Rinzwind Sep 12 '16 at 11:59
  • op is champ, he himself restored using http://askubuntu.com/a/428152/593718. apparently he is just preparing for the fallout :D – inquisitive Sep 12 '16 at 13:21