LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Help! pem_read_bio: bad end line

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2004, 10:53 PM
satang satang is offline
Member
 
Join Date: Jun 2004
Location: Wellington, NZ
Posts: 13
Default Help! pem_read_bio: bad end line

2004-07-27 17:41:50.185 [ERROR] [SSL] Config SSL Context for listener 210.54.92.188:443 with Certificate File: /mv/
ssl/www.bnz.marketview.co.nz.reply and Key File:/mv/ssl/www.bnz.marketview.co.nz get SSL error: error:0906D066:PEM
routines:PEM_read_bio:bad end line

I've just stuck my SSL certificate that Apache was using; it looks like this:

-----BEGIN CERTIFICATE-----
MIIDHj...
....==

Nevermind, I fixed it by adding to the end of the cert:
-----END CERTIFICATE-----

For some reason, Apache (w/OpenSSL 0.9.7d) tolerated this but LiteSpeed didn't.
Reply With Quote
  #2  
Old 07-27-2004, 08:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The error message is emited by OpenSSL library, LSWS is just the messenger. ;-)

Apache probably use their own wrapper function to load certificate and key files.
Reply With Quote
  #3  
Old 07-29-2004, 08:57 PM
satang satang is offline
Member
 
Join Date: Jun 2004
Location: Wellington, NZ
Posts: 13
Default one more thing...

errors that happen inside the OpenSSL libraries seem to give me this sort of thing:

Code:
2004-07-30 15:49:17.178 [DEBUG] Created new Listener [*:7080].
2004-07-30 15:49:17.178 [DEBUG] Created new Listener [*:80].
2004-07-30 15:49:17.178 [DEBUG] Created new Listener [192.168.1.29:443].
2004-07-30 15:49:17.178 [DEBUG] [SSL] Create SSL context for listener 192.168.1.29:443 with Certificate file: /mv/ssl/bnz-dev.private.marketview.co.nz.crt and Key File: /mv/app/dev/bnz/conf/priv.key.
2004-07-30 15:49:17.181 [ERROR] [SSL] Config SSL Context for listener 192.168.1.29:443 with Certificate File: /mv/ssl/bnz-dev.private.marketview.co.nz.crt and Key File:/mv/app/dev/bnz/conf/priv.key get SSL error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mis
2004-07-30 15:49:17.185 [NOTICE] [AutoRestarter] child process with pid=20552 received signal=11, a core file is created!
2004-07-30 15:49:17.185 [NOTICE] [AutoRestarter] stop children processes and remove created unix sockets!
2004-07-30 15:49:17.293 [WARN] [AutoRestarter] forking too frequently, suspend for a while!
This means that when you restart the web server after changing the SSL configuration, you can be left with nothing but a "connection refused" message! Much better just to disable the listener with the fault...

Maybe you should link to a guide to making these keys from that dialog? Most users will find this tricky.
Reply With Quote
  #4  
Old 07-30-2004, 08:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Look like it caused by private key, certificate mismatch.
The core dump should be fixed.
Quote:
Maybe you should link to a guide to making these keys from that dialog? Most users will find this tricky.
Yes, we plan to add self signed certificate generation and private key, certificate verification in the web interface. :-)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
command line restart of individual rails apps instead of webserver? nathanc Ruby/Rails 3 01-16-2008 10:43 AM
php make errors UbiquityClint Install/Configuration 9 07-12-2007 10:53 AM
cPanel Login Broken After Litespeed Install Rodney-E2 Apache Migration/Compatibility 8 05-10-2007 03:18 PM
Action Controller Exception: LSWS 3.1 bdm Ruby/Rails 14 04-05-2007 08:48 PM


All times are GMT -7. The time now is 06:30 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.