Page 1 of 1

Help with Apache and SSL

PostPosted: 11. August 2005 21:07
by ivan_spaeth
I'm trying to set up SSL on a virtual site. I'm alittle confused on how to accomplish this (i'm new to apache). Here is my vhost directive:

Code: Select all
<VirtualHost 66.129.95.119>
DocumentRoot "/usr/htdocs/marcoTraining"
SSLCertificateFile /usr/ssl/crt/marco.crt
SSLCertificateKeyFile /usr/ssl/private/marco.key
<Directory "/usr/htdocs/marcoTraining">
allow from all
Options +Indexes
</Directory>
</VirtualHost>


and I have verified that all the paths are correct. I know that I need to turn on SSLEngine by adding :

SSLEngine On

But when I do apache will not start and I get the following error:

Code: Select all
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/


In my error_log file located at /opt/lampp/logs i get all sorts of ssl errors like:

Code: Select all
[Thu Aug 11 15:32:07 2005] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Thu Aug 11 15:32:07 2005] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Thu Aug 11 15:32:07 2005] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Thu Aug 11 15:32:07 2005] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib

[Thu Aug 11 15:33:35 2005] [error] Init: Unable to read pass phrase [Hint: key introduced or changed before restart?]
[Thu Aug 11 15:33:35 2005] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Thu Aug 11 15:33:35 2005] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Thu Aug 11 15:33:35 2005] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Thu Aug 11 15:33:35 2005] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib



I really have no idea what is going on... can anyone help?

- Thanks a million!

Re: Help with Apache and SSL

PostPosted: 12. May 2011 20:02
by AIResearcher
I am having similar problems. SSL has been running fine, but when I changed my cert to one provided by Verisign it coughs on "error 1". The logs give no help, just a single line about the plugin not being valid or recognized.

It seems to be SSLEngine on is what it is complaining about...