Operating System - HP-UX
1834018 Members
2148 Online
110063 Solutions
New Discussion

Re: Pass phrase incorrect - apache2

 
HPP
Regular Advisor

Pass phrase incorrect - apache2

Hi,
I have installed apache 2.0.50 on hp-ux 11.11. I have ssl certifcate signed by verisign and also i have self signed certifcate. I tired to use both with following configuration in ssl.conf for auto start of ssl

SSLPassPhraseDialog exec:/opt/hpws/apache/conf/parseinput

When i try to start apache with "apachectl startssl" it fails with the following error

[Fri Oct 29 15:52:27 2004] [error] Init: Pass phrase incorrect
[Fri Oct 29 15:52:27 2004] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag
[Fri Oct 29 15:52:27 2004] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Fri Oct 29 15:52:27 2004] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Fri Oct 29 15:52:27 2004] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib



If i use the following in ssl.conf

#SSLPassPhraseDialog exec:/usr/local/bin/killappinput
SSLPassPhraseDialog builtin

then i manually enter passphrase then it works fine.

Am i missing something?

Thanks in advance.
Be Teachable
4 REPLIES 4
HPP
Regular Advisor

Re: Pass phrase incorrect - apache2

Hi All,
I forgot to mention one more thing. The same certs works fine on apache 1.3.27, with

SSLPassPhraseDialog exec:/opt/apache/conf/parseinput


Manual intervention is not required. Apache reads pass phrase from the file.

Thanks
Be Teachable
HPP
Regular Advisor

Re: Pass phrase incorrect - apache2

I did not see any response for my question. Any input in this regard would be of great help.

Thanks
Be Teachable
Steven E. Protter
Exalted Contributor

Re: Pass phrase incorrect - apache2

If it works from the command line and it doesn't work in scripted mode, check the environment.

env > /tmp/command.txt

check the environment in your script. see if the SHLIB_PATH variable is correctly set.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
HPP
Regular Advisor

Re: Pass phrase incorrect - apache2

Here is the oput of env

PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/opt/resmon/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/graphics/common/bin:/opt/gnome/bin:/opt/mozilla:/opt/mx/bin:/usr/sbin/diag/contrib:/opt/wbem/bin:/opt/wbem/sbin:/opt/java1.4/jre/bin:/opt/java1.4/bin:/usr/local/bin:/opt/perf/bin:/opt/ignite/bin:/sbin:/home/root
COLUMNS=142
EDITOR=vi
LOGNAME=root
MAIL=/var/mail/root
ERASE=^H
USER=root
SHELL=/sbin/sh
JAVA_HOME=/opt/java1.4
HOME=/
TERM=vt100
PWD=/opt/hpws/apache/conf
TZ=EST5EDT
LINES=42

SHLIB_PATH is not set, still command line pass phrase works.

Thanks
Be Teachable