Solved

This is in AIX5.3..We are getting this error Dependent module libcrypto.a(libcrypto.so.0.9.8) could not be loaded. Member libcrypto.so.0.9.8 is not found in archive

Posted on 2011-02-23
12
3,393 Views
Last Modified: 2012-10-01
This is in AIX 5.3..we are getting this error..This is in AIX5.3..We are getting this error Dependent module libcrypto.a(libcrypto.so.0.9.8) could not be loaded. Member libcrypto.so.0.9.8 is not found in archive

with the application owner user id  when we are trying to do an ssh we are getting this error...but with other user id's I am able to do ssh..We cant change the env for that user as the application will stop working ..we  are running informatica on it..Please let me know as how this can be eliminated and ssh can be done through that user

i am tring to exchange keys with user on that server to other server..As I am not able to ssh..I am not able to exchange keys..let me know how it can be removed for that user

rpm -qa | egrep '(openssl|openssh|prng)'
openssl-0.9.6m-2
openssl-devel-0.9.7g-2
openssl-doc-0.9.7g-2
prngd-0.9.29-1
0
Comment
Question by:aixtutorial
  • 6
  • 6
12 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Hi again,

this is clearly a LIBPATH problem.

I assume that the application user has a particular LIBPATH setting in their .profile (or in one of their own initialization files).

libcrypto comes with OpenSSL. Which OpenSSL implementation do you use? Which ssh implementation?

Normally libcrypto should be linked to /usr/lib from /opt/freeware/lib, but we should first try to find out where your libcrypto actually is.

Issue (as root):
find / -name "libcrypto*"
and tell us what you found.

Please don't confuse libcrypto with libcrypt - that's an AIX library!

Further, please log in as the application user and issue

echo $LIBPATH
which ssh

When logged in as root issue:

lslpp -l | grep -i ssl
lslpp -l | grep -i ssh
rpm -qa | grep -i ssh
rpm -qa | grep -i ssl


Please post the output of the above commands.

As a first check you could log in as the application user and issue

unset LIBPATH
and
ssh -V

Does it work now?

wmp
0
 

Author Comment

by:aixtutorial
Comment Utility
Please find the below output
Could not load program ssh:
        Dependent module /informatica/PowerCenter8.6.0/server/bin/libcrypto.a(libcrypto.so.0.9.8) could not be loaded.
        Member libcrypto.so.0.9.8 is not found in archive
  and then I did
unset LIBPATH
ssh -V
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009


and after  that I ran the commands


# lslpp -l | grep -i ssl
  gskjs.rte                 7.0.3.18  COMMITTED  AIX Certificate and SSL Java
  gskjt.rte                 7.0.3.18  COMMITTED  AIX Certificate and SSL Java
  gsksa.rte                 7.0.4.11  COMMITTED  AIX Certificate and SSL Base
  gskta.rte                 7.0.4.11  COMMITTED  AIX Certificate and SSL Base
  openssl.base            0.9.8.1102  COMMITTED  Open Secure Socket Layer
  openssl.license         0.9.8.1102  COMMITTED  Open Secure Socket License
  openssl.man.en_US       0.9.8.1102  COMMITTED  Open Secure Socket Layer
  pware53.openssl.rte        0.9.8.8  COMMITTED  OpenSSL 0.9.8h
  openssl.base            0.9.8.1102  COMMITTED  Open Secure Socket Layer
# lslpp -l | grep -i ssh
  openssh.base.client     5.2.0.5300  COMMITTED  Open Secure Shell Commands
  openssh.base.server     5.2.0.5300  COMMITTED  Open Secure Shell Server
  openssh.license         5.2.0.5300  COMMITTED  Open Secure Shell License
  openssh.man.en_US       5.2.0.5300  COMMITTED  Open Secure Shell
  openssh.msg.en_US       5.2.0.5300  COMMITTED  Open Secure Shell Messages -
  openssh.base.client     5.2.0.5300  COMMITTED  Open Secure Shell Commands
  openssh.base.server     5.2.0.5300  COMMITTED  Open Secure Shell Server
# rpm -qa | grep -i ssh
# rpm -qa | grep -i ssl
openssl-0.9.7l-1
openssl-devel-0.9.7l-1
openssl-doc-0.9.7l-1


But the libpath is needed for my applicaton to work.please let me know as how this can be done keeping the libpath and ssh to work at the same time
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Please log in with a userid where ssh works and issue
echo $LIBPATH
and
ldd $(which ssh)

Now log in as the application user (where it doesn't work) and issue
echo $LIBPATH

Please post the output of all the commands above!




0
 

Author Comment

by:aixtutorial
Comment Utility

echo $LIBPATH /informatica/PowerCenter8.6.0/server/bin:/usr/java5_64/jre/bin:/usr/java5_64/jre/bin/classic:/usr/lib:/lib:/u00/app/oracle/lib:/u00/app/oracle/lib32:.

ssh

Could not load program ssh:
        Dependent module /informatica/PowerCenter8.6.0/server/bin/libcrypto.a(libcrypto.so.0.9.8) could not be loaded.
        File /informatica/PowerCenter8.6.0/server/bin/libcrypto.a is not an
          archive or the file could not be read properly.


ldd $(which ssh)

/usr/bin/ssh needs:
         /usr/lib/libc.a(shr.o)
         /informatica/PowerCenter8.6.0/server/bin/libcrypto.a(libcrypto.so.0.9.8)
ar: 0707-108 File /informatica/PowerCenter8.6.0/server/bin/libcrypto.a is not an archive file.
dump: /tmp/tmpdir401560/extract/libcrypto.so.0.9.8: 0654-106 Cannot open the specified file.
         /informatica/PowerCenter8.6.0/server/bin/libz.a(libz.so.1)
ar: 0707-108 File /informatica/PowerCenter8.6.0/server/bin/libz.a is not an archive file.
dump: /tmp/tmpdir401560/extract/libz.so.1: 0654-106 Cannot open the specified file.
         /unix
         /usr/lib/libcrypt.a(shr.o)





for the other user with which I am able to do ssh has this




didnt gave any output as libpath is not set for that user


echo $LIBPATH

and

ldd $(which ssh)

/usr/bin/ssh needs:
         /usr/lib/libc.a(shr.o)
         /usr/lib/libcrypto.a(libcrypto.so.0.9.8)
         /usr/lib/libz.a(libz.so.1)
         /unix
         /usr/lib/libcrypt.a(shr.o)
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
Yep, I see.

I had the same problem with some other third party software (not Informatica).

I think you can't tell me if /informatica/PowerCenter8.6.0/server/bin/libcrypto.a and libz.a have really to be present (are used by Informatica)?
If you could find out that it's not needed it would make things easier! Maybe you could ask an Informatica support person?

But anyway, the only solution I found in those days was this:

Write a script, put it into a common directory and set an alias "ssh" to it!

The script:

#!/bin/ksh
export OLIBPATH=$LIBPATH
unset LIBPATH
/usr/bin/ssh "$@"
export LIBPATH=$OLIBPATH
exit


Call this script e.g. "myssh", put it into e.g. /usr/local/bin (create this directory with "mkdir -p /usr/local/bin" if it's not there), and issue
chmod +x /usr/local/bin/myssh

Now add the line

alias ssh='/user/local/bin/myssh'

to $HOME/.profile of all users whose ssh doesn't work.

Logout and login again, and you will have a working ssh.

Please note that you will have to do the same with "scp" if you use this program!

wmp

0
 

Author Comment

by:aixtutorial
Comment Utility
wmp Thanks a lot Sir..You are the master of AIX..It worked .I wanted to know what does woolmilkproc means anyway
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
See my EE profile!
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
See my EE profile!
0
 

Author Comment

by:aixtutorial
Comment Utility
I am now able to ssh to other server and execute commands on the remote by

ssh user@host "ls -al"

but when i am trying to do scp it throws a weird error
scp -pr test user@host:/informatica  
it gives this error
Bad port 'r'

I am getting this error  even when I am doing scp -pr  or scp -pr or directly scp test  user@host:/informatica  

0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
OK, sorry for not having been clear enough!

What I meant to say with "do the same with scp":

Write a second script for scp and set the "scp" alias to this script!

The "scp" script "myscp":

#!/bin/ksh
export OLIBPATH=$LIBPATH
unset LIBPATH
/usr/bin/scp "$@"
export LIBPATH=$OLIBPATH
exit


Put this script "myscp" into the same /usr/local/bin directory and issue
chmod +x /usr/local/bin/myscp

Now add another line

alias scp='/user/local/bin/myscp'

to $HOME/.profile of the concerned users.

Logout and login again, to make it work.

Sorry again for the mistakable wording!

wmp
0
 

Author Comment

by:aixtutorial
Comment Utility
Thanks,,It worked.
0
 

Author Closing Comment

by:aixtutorial
Comment Utility
it worked
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now