apt-get install apache-ssl -- problems making Certificate Request
debian:
I am attempting to install apache-ssl on a fresh 3.1r1 installation. When I
ran apt-get, I think it barfed on something I entered for the SSL
certificate (?):
# apt-get install apache-ssl
<snip>
Setting up apache-ssl (1.3.33-6sarge1) ...
Generating a 1024 bit RSA private key
...................................................................+
+++++
.................++++++
writing new private key to '/etc/apache-ssl/apache.pem'
-----
problems making Certificate Request
4517:error:0D07A097:asn1 encoding routines:ASN1_mbstring_copy:string
too long:a_mbstr.c:154:maxsize=2
dpkg: error processing apache-ssl (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
apache-ssl
E: Sub-process /usr/bin/dpkg returned an error code (1)
Now apache-ssl won't start:
# /etc/init.d/apache-ssl start
Starting web server: apache-ssl failed
# tail -n 2 /var/log/apache-ssl/error.log
[Wed Jun 7 21:31:59 2006] [crit] Error reading server certificate f
ile /etc/apache-ssl/apache.pem
[Wed Jun 7 21:31:59 2006] [crit] error:0906D06C:PEM routines:PEM_re
ad_bio:no start line
Looking for /etc/apache-ssl/apache.pem, the file exists and appears to
contain an RSA key:
# cat /etc/apache-ssl/apache.pem
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQDWnu2zLsA/PpUMj2P9pgUzZaV3fu/5a7T9Z/mHyo77JOLwh7PG
<snip>
JIwdsCIzgZmYCfMrFEb6J2PyBmST7twXkn46yHfLFtU=
-----END RSA PRIVATE KEY-----
Attempting to configure apache-ssl doesn't seem like the correct solution:
# dpkg --configure apache-ssl
dpkg: error processing apache-ssl (--configure):
package apache-ssl is already installed and configured
Errors were encountered while processing:
apache-ssl
How do I get apache-ssl working?
TIA,
David
Reply to: