Hugo
Thanks for getting back. Turns out that it's not specifically the multi-domain cert that's the issue. I also generated a free Comodo single-domain test cert and am having the same issue. If I can't resolve this I'm going to have to abandon Hiawatha. which would be very sad as it's much my preferred webserver. Please be kind enough to review what I've been doing to see if you can spot where I'm going wrong.
THE ISSUEJust to recap, self-generated certs are working fine within both Binding and VirtualHost, but 3rd party certs are failing from both, with the error:
Error loading X.509 certificate from /etc/hiawatha/mysite.com.pem
Checking the pem with
openssl x509 -in
shows no issues.
SERVER & VERSIONLatest Ubuntu Server with latest version of Hiawatha compiled locally and installed to /etc/hiawatha
Directory perms set to 700, pem perms set to 600. Owner is root.
KEY & CSR GENERATIONAs root on the host server:
> openssl genrsa -out mysite.com.key 2048
> openssl req -new -sha256 -key mysite.com.key -out mysite.com.csr
PEM FILEComodo deliver their keys in an email. I'm copying out of Gmail and pasting into Vim below the key. I've checked that all the line-endings are Unix. I've tried with the cert immediately below the key, and with an empty line between them.
HIAWATHA CONFIGI've tried with just the Key and Cert, and with the 3 additional certs in the chain of trust for this product. I've checked with Comodo that the chain of trust is correct in the pem file.
Binding {
Port = 443
...
SSLcertFile = /etc/hiawatha/mysite.com.pem
}
VirtualHost {
Hostname = mysite.com
...
SSLcertFile = /etc/hiawatha/mysite.com.pem
}
I simply can't think of anything else to check.
Please help if you can - I love Hiawatha and am very keen to keep using it!