Fabio Massimo Di Nitto wrote:
> Hi,
> are you running testing? is this a fresh installation or an
> upgrade?
Yes, I am running testing. I think it was a fresh install, because I
purge the previous installation...
> Please provide me more information asap.
I found the problem by myself:
If you left one field in the dialog for the certificate empty you will get:
> Setting up apache-ssl (1.3.29.0.1-3) ...
> Generating a 1024 bit RSA private key
> ...................++++++
> .......++++++
> writing new private key to '/etc/apache-ssl/apache.pem'
> -----
> problems making Certificate Request
> 32587:error:0D07A098:asn1 encoding routines:ASN1_mbstring_copy:string too short:a_mbstr.c:147:minsize=1
> 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)
And if you then try again "apt-get install apache-ssl" you will get (the
message of my first report):
> Setting up apache-ssl (1.3.29.0.1-3) ...
> Starting web server: apache-sslProcessing config directory: /etc/apache-ssl/conf.d
> failed
> invoke-rc.d: initscript apache-ssl, action "start" failed.
> 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)
So if left a field empty in the dialog for the creation of a certificate
a corrupted "apache.pem" will be created:
> ---- /var/log/apache-ssl/error.log ----
> [Sun Jan 25 14:16:40 2004] [crit] Error reading server certificate file /etc/apache-ssl/apache.pem
> [Sun Jan 25 14:16:40 2004] [crit] error:0906D06C:PEM routines:PEM_read_bio:no start line
> -------------- 8< ---------------------
and then on the second "apt-get install apache-ssl" the postinstall
script just checks if there is a /etc/apache-ssl/apache.pem, and yes
there is one, but one that is *corrupted*. So it will try to start
apache-ssl, but it won't (see error.log)
So maybe its a good thing to say in the dialog to fill out *every* field
or to check if the apache.pem is correct and working.
Message-ID: <email address hidden>
Date: Sun, 25 Jan 2004 14:27:57 +0100
From: Michael Kebe <email address hidden>
To: Fabio Massimo Di Nitto <email address hidden>
CC: Michael Kebe <email address hidden>, <email address hidden>
Subject: Re: Bug#229505: apache-ssl: post-installation script fails
------- ------- enig6907E0AD6CB 8B8607F1CF891 Transfer- Encoding: 7bit
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-
Fabio Massimo Di Nitto wrote:
> Hi,
> are you running testing? is this a fresh installation or an
> upgrade?
Yes, I am running testing. I think it was a fresh install, because I
purge the previous installation...
> Please provide me more information asap.
I found the problem by myself:
If you left one field in the dialog for the certificate empty you will get:
> Setting up apache-ssl (1.3.29.0.1-3) ... ....... .....++ ++++ ssl/apache. pem' 0D07A098: asn1 encoding routines: ASN1_mbstring_ copy:string too short:a_ mbstr.c: 147:minsize= 1
> Generating a 1024 bit RSA private key
> .......
> .......++++++
> writing new private key to '/etc/apache-
> -----
> problems making Certificate Request
> 32587:error:
> 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)
And if you then try again "apt-get install apache-ssl" you will get (the
message of my first report):
> Setting up apache-ssl (1.3.29.0.1-3) ... sslProcessing config directory: /etc/apache- ssl/conf. d
> Starting web server: apache-
> failed
> invoke-rc.d: initscript apache-ssl, action "start" failed.
> 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)
So if left a field empty in the dialog for the creation of a certificate
a corrupted "apache.pem" will be created:
> ---- /var/log/ apache- ssl/error. log ---- ssl/apache. pem PEM_read_ bio:no start line ------- -------
> [Sun Jan 25 14:16:40 2004] [crit] Error reading server certificate file /etc/apache-
> [Sun Jan 25 14:16:40 2004] [crit] error:0906D06C:PEM routines:
> -------------- 8< -------
and then on the second "apt-get install apache-ssl" the postinstall ssl/apache. pem, and yes
script just checks if there is a /etc/apache-
there is one, but one that is *corrupted*. So it will try to start
apache-ssl, but it won't (see error.log)
So maybe its a good thing to say in the dialog to fill out *every* field
or to check if the apache.pem is correct and working.
Greetings
Michael
------- ------- enig6907E0AD6CB 8B8607F1CF891 pgp-signature; name="signature .asc" Description: OpenPGP digital signature Disposition: attachment; filename= "signature. asc"
Content-Type: application/
Content-
Content-
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org
MvfZGxKIRAs6RAJ 0dU++0Dx3Gtzskh Z0T4QX7TTsi9gCf f8dT uv0dSUUc=
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://
iD8DBQFAE8Ribaz
hBl+Q4ONZt3tqKR
=FwNA
-----END PGP SIGNATURE-----
------- ------- enig6907E0AD6CB 8B8607F1CF891- -