I'm setting up SSL for the first time.
I edited my config files in sites-enabled and ran
apache2ctl configtest. Got back Syntax OK.
I then ran
apache2ctl graceful. There weren't any errors or anything, and I was returned to the prompt. However the site was down after running this, so I quickly put back the old config files and restarted.
If my syntax was okay, why didn't Apache restart? Do I need to do
apache2ctl start instead of the graceful command? Will I be asked to enter the passphrase for my key file?
Configuration changes made:
NameVirtualHost *:80and added line for
VirtualHost *lines to
VirtualHostsection for the site that I want to have SSL available and made that section
Added these lines to the new VirtualHost:
SSLEngine On SSLCertificateFile pathtocert SSLCertificateKeyFile pathtokey SSLCertificateChainFile pathtochainfile
UPDATE 8th July: After checking additional log files I finally found a smoking gun:
SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
So at least something else to go on.