Quote:
This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.
My approach to generate self-signed SSL keys is shown below. I didn't think I was using SHA-1, but thought I was using SHA-256.
What should I do to eliminate this warning?
Thank you
Code:
# generate mysite.coms's RSA keypair with 3072 bits and encrypt it openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -aes-128-cbc -out mysite_key.pem # generate a certificate signing request. Used FQDN of server (i.e. mysite.com). Use email with dot to prevent spam. Didn't include an "extra" password openssl req -new -key mysite_key.pem -sha256 -days 365 -out mysite_csr.pem # Remove pass-phrase from the key cp mysite_key.pem mysite_key.pem.tmp openssl rsa -in mysite_key.pem.tmp -out mysite_key.pem rm -f mysite_key.pem.tmp # sign the certificate with the key itself. Skip this step if using a CA openssl x509 -req -in mysite_csr.pem -signkey mysite_key.pem -sha256 -days 365 -out mysite_crt.pem # Copy the files to the correct locations (don't move since it will cause problems with selinux). Be sure to keep at read only by root cp mysite_key.pem /etc/pki/tls/private/mysite_key.pem cp mysite_csr.pem /etc/pki/tls/private/mysite_csr.pem cp mysite_crt.pem /etc/pki/tls/certs/mysite_crt.pem rm -f mysite_key.pem rm -f mysite_csr.pem rm -f mysite_crt.pem # update /etc/httpd/conf.d/ssl.conf as follows: # SSLCertificateFile /etc/pki/tls/certs/mysite_crt.pem # SSLCertificateKeyFile /etc/pki/tls/private/mysite_key.pem /etc/init.d/httpd restart