[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Strange SSL Problem (can't read certificate)



Hi List,

I'm trying to include ssl support for apache on my freshly installed
debian system. However it seems I'm failing miserably, because of the
following error which I get everytime I try to start Apache:

[Fri Oct 18 21:13:24 2002] [notice] SIGUSR1 received.  Doing graceful
restart
[Fri Oct 18 21:14:28 2002] [error] mod_ssl: Init: Unable to read server
certificate from file /etc/apache/ssl.crt/server.crt (OpenSSL library
error follows)
[Fri Oct 18 21:14:28 2002] [error] OpenSSL: error:0D09F007:asn1 encoding
routines:d2i_X509:expecting an asn1 sequence

I have the following packages installed:

server:~/# dpkg -l | grep openssl
ii  openssl        0.9.6g-9       Secure Socket Layer (SSL) binary and
related
server:~/# dpkg -l | grep apache
ii  apache         1.3.26-0woody1 Versatile, high-performance HTTP
server
ii  apache-common  1.3.26-0woody1 Support files for all Apache
webservers
ii  libapache-mod- 2.8.9-2        Strong cryptography (HTTPS support)
for Apac

I built a new certificate for my server by issuing these commands:

openssl genrsa -out server.key 4096
openssl req -new -key server.key -x509 -out server.crt


I searched for the problem and found quite a number of people asking for
it, but either they forgot to replace the dummy server.crt, or they did
not get an answer.

Thanks for your help in advance,
Daniel




Reply to: