I've added SSL to a website (Apache 2.2 w/ Centos 6) using a self signed key. Chrome, FF, and IE displays the following:
Chrome
Your connection is not private Attackers might be trying to steal your information from test.example.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_AUTHORITY_INVALID
FF
Your connection is not secure The owner of test.example.com has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website.
IE
There’s a problem with this website’s security certificate This might mean that someone’s trying to fool you or steal any info you send to the server. You should close this site immediately.
Is this expected? If not, how should the site be configured. Below is what I have done.
Apache is configured as:
<VirtualHost *:443>
ServerName test.example.com
DocumentRoot /var/www/test/html
ErrorDocument 404 /error-404.html
SSLEngine on
SSLCertificateKeyFile /etc/pki/tls/private/test_key.pem
SSLCertificateFile /etc/pki/tls/certs/test_crt.pem
<Directory "/var/www/test/html">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
RewriteEngine On
#Include /var/www/httpd/private.conf
</Directory>
</VirtualHost>
My keys were generated as:
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -aes-128-cbc -out test_key.pem
# For the following command, left all as default values
openssl req -new -key test_key.pem -sha256 -days 365 -out test_csr.pem
cp test_key.pem test_key.pem.tmp
openssl rsa -in test_key.pem.tmp -out test_key.pem
rm -f test_key.pem.tmp
openssl x509 -req -in test_csr.pem -signkey test_key.pem -sha256 -days 365 -out test_crt.pem
sudo cp test_key.pem /etc/pki/tls/private/test_key.pem
sudo cp test_csr.pem /etc/pki/tls/private/test_csr.pem
sudo cp test_crt.pem /etc/pki/tls/certs/test_crt.pem
rm -f test_key.pem
rm -f test_csr.pem
rm -f test_crt.pem