1752782 Members
6033 Online
108789 Solutions
New Discussion юеВ

openssl

 
SOLVED
Go to solution
Jonathan Grymes
Frequent Advisor

openssl

HPUX 11.23 system. I downloaded from HP and installed OpenSSL_A.00.09.08l.002_HP-UX_B.11.23_IA_PA.depot.

# swlist | grep -i OPENSSL
OpenSSL A.00.09.08l.002 Secure Network Communications Protocol
openssl 0.9.8a openssl

However, when I check for version the old openssl is returned.
# openssl version
OpenSSL 0.9.7m 23 Feb 2007

The install instructions said I could install over an existing Openssl version.
/opt/openssl still shows 0.9.7 so Im thinking I should have removed the old version. What do you think? No additional config changes were in the install instructions.

2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: openssl

Shalom,

Both versions of openssl are installed.

The 0.9.7 version is found first on the PATH variable, which is used to find executables.

whence openssl
echo $PATH

Change the PATH or remove the old version and you are good to go.

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
Horia Chirculescu
Honored Contributor

Re: openssl

Hello, Jonathan.

You can find the path to the "current" used executable by:

[olt]:/var/opt/cmom # which openssl
/usr/bin/openssl

You can find the location of the new installed openssl with find. See below the example.

Afther that, you can link /usr/bin/openssl to the newer binary like this:

[olt]:/var/opt/cmom #mv /usr/bin/openssl /usr/bin/openssl-097m
[olt]:/var/opt/cmom #ln -sf /usr/local/bin/openssl /usr/bin/openssl

Afther that you get what you want:

[olt]:/var/opt/cmom #openssl version
OpenSSL 0.9.8j 07 Jan 2009


I have re-constructed here your situation by installing a software depot:

[olt]:/var/opt/cmom # swlist |grep openssl
openssl 0.9.8j openssl

[olt]:/var/opt/cmom # openssl version
OpenSSL 0.9.7d 17 Mar 2004


[olt]:/var/opt/cmom # find / -name openssl -print
/opt/openssl
/opt/openssl/include/openssl
/opt/openssl/bin/openssl
/opt/wbem/sbin/openssl
/opt/hpws/apache/bin/openssl
/usr/bin/openssl
/usr/include/openssl
/usr/local/bin/openssl
/usr/local/include/openssl
/usr/local/openssl
/usr/local/doc/openssl

[olt]:/var/opt/cmom # /usr/bin/openssl version
OpenSSL 0.9.7d 17 Mar 2004

[olt]:/var/opt/cmom # /usr/local/bin/openssl version
OpenSSL 0.9.8j 07 Jan 2009
[olt]:/var/opt/cmom # which openssl
/usr/bin/openssl

Best regards,
Horia.
Best regards from Romania,
Horia.