I inherited work on a website and I am trying ultimately to replace SHA-1 certificates with SHA-2 certificates.
The first step would be to generate a CSR from my server using the command
openssl req -new -sha256 -key myexistingprivate.key -out newcsr.csr
I need to find where the existing private key is. In the root folder there are .key
files for the domain.com.key
, www_domain_com.key
and star_domain_com.key
. (The site domain on the internet doesn't use www but www is the ServerAlias)
In the etc/apache2/sites-enabled/default-ssl
are the lines
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
In etc/ssl/private
there is only ssl-cert-snakeoil.key
Why would the default-ssl
reference the snake oil file and not the domain.com.key
file? How would the domain.com certificate be called? (It's installed correctly)