Forum

Error loading RSA private key from certificate.pem

Gour
6 November 2014, 12:11
Hello,

I'd like to secure my admin tools running at subdomains with SSL certificate and was following instructions to create SAN self-signed certificate with 4096 key.

Afterwards, was following instructions in howto [www.hiawatha-webserver.org] but attempt to restart Hiawatha gives:

Error loading RSA private key from /ets/ssl/somefolder/certificate.pem


Examining certificate with:

openssl x509 -in certificate.pem -text -noout


does not show any problem.

Any hint?

I'd also like if you can provide some further instructions for using commercial SSL certificates like (cheap) Comodo, RapidSSL as well as free one from StartSSL?
Hiawatha version:
Operating System:
Hugo Leisink
6 November 2014, 12:48
The file you specify via SSLcertFile should contain both private key and certificate. Looks like the private key is missing.
Gour
6 November 2014, 14:05
Well, the cert file looks like

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----



Will try to re-generate...


Gour
6 November 2014, 17:45
It was permissions problem.

Now it loads, but have another certificate-related problems...
This topic has been closed.