PDA

View Full Version : SSL error


brianvic
01-31-2006, 08:53 AM
I have just installed SuSE 9.3 onto a brand new Dell SC430 server. It has a 2.8Ghz P4 (EM64T).

I have PHP 5.0.3, MySQL 4.1.10 and Litespeed 2.1.9 installed.

Everything works perfectly (once I figured out the paths for the 64bit PHP files) except when I try to enable SSL on my website.

I am using self-certified certificates and created new ones on the new server, just in case there was a problem using the old ones on a 64-bit system.

The error in the Litespeed log is:

SSL error: error:0906D06C:PEM routines:PEM_read_bio:no start line

Any pointers would be greatly appreciated. Could it still be something to do with 64-bit paths etc? I know Litespeed hasn't been recompiled for 64-bit yet, but since everything else works surely SSL can too.

Thanks in advance.

mistwang
01-31-2006, 09:25 AM
I think there is something wrong with your private key or certificate file.
The private key file should start with a line like
-----BEGIN RSA PRIVATE KEY-----
The certificate file should start with a line like
-----BEGIN CERTIFICATE-----

Try following our howto to generate your key and certificate, see if it generate files in right format.
http://www.litespeedtech.com/docs/HowTo_QA.html#qa_prvtkey

brianvic
02-01-2006, 02:03 AM
Thanks, Mistwang. There was a spurious character at the beginning of the certificate file. It appears it was getting added whenever I created one on the new system.

I have re-installed the openssl files and that seems to have fixed it.

Be interesting to find out how and why it happened, but happy that it is now fixed.

Cheers!!