Find applications that use openssl


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Find applications that use openssl
# 1  
Old 04-22-2014
RedHat Find applications that use openssl

I have a OpenSSL configured in my RHEL machine.
I need to find the list of applications that use or depend on OpenSSL.
Is it possible to know which application is using the shared library?


Code:
ldd `which openssl`
 linux-gate.so.1 =>  (0x00b3a000)
        libssl.so.10 => /usr/lib/libssl.so.10 (0x0059a000)
        libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x0040a000)
        libkrb5.so.3 => /lib/libkrb5.so.3 (0x00dbf000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x002f9000)
        libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x00a2a000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x009cf000)
        libcrypto.so.10 => /usr/lib/libcrypto.so.10 (0x00601000)
        libdl.so.2 => /lib/libdl.so.2 (0x0038e000)
        libz.so.1 => /lib/libz.so.1 (0x00bbf000)
        libc.so.6 => /lib/libc.so.6 (0x007c7000)
        libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x00587000)
        libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x0016f000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00173000)
        /lib/ld-linux.so.2 (0x0021e000)
        libselinux.so.1 => /lib/libselinux.so.1 (0x0018e000)

Will this work,because i am not sure about this
Code:
rpm -ql <app> | grep <shared library>

# 2  
Old 04-22-2014
This should find any that are currently running:

Code:
for i in $(lsof | awk '/openssl/ { print $1 }' | sort | uniq ); do chkconfig --list | grep $i | awk '{ print $1 }'; done

If you're worried about the Heartbleed SSL issue the services stopped won't matter. If you've patched SSL, the patch will be applied when and if you do start them again.
This User Gave Thanks to Azrael For This Post:
# 3  
Old 04-22-2014
Quote:
Originally Posted by Azrael
This should find any that are currently running:

Code:
for i in $(lsof | awk '/openssl/ { print $1 }' | sort | uniq ); do chkconfig --list | grep $i | awk '{ print $1 }'; done

If you're worried about the Heartbleed SSL issue the services stopped won't matter. If you've patched SSL, the patch will be applied when and if you do start them again.
thanks that is helpful.
But what if we don't have lsof.Is there any way around?
# 4  
Old 04-22-2014
I use Redhat and CentOS everyday at work. It should installed by default.
# 5  
Old 05-05-2014
Is it possible to check,the applications that are not active?
# 6  
Old 05-05-2014
If you have yum-utils:

Code:
repoquery --whatrequires --installed --recursive openssl

This User Gave Thanks to Aia For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. HP-UX

Uninstall OpenSSL

We have a legacy HP-UX 11.11 server that has a number of security vulnerabilities associated with OpenSSL. We have a project in the works to replace this server but until then I need to deal with the vulnerabilities. No applications on the server utilize SSL, so my plan was to simply remove it. ... (8 Replies)
Discussion started by: jduehmig
8 Replies

2. Cybersecurity

OpenSSL

I just started playing around with Unix's OpenSSL utility. I can't seem to get the hang of it, and the man page isn't helping much. I wanted to experiment with file encryption, so I created a dummy text file with one line of text and tried to encrypt it using DES. I used the following command: ... (2 Replies)
Discussion started by: Ultrix
2 Replies

3. UNIX for Advanced & Expert Users

How to find remote IP addresses that applications are scanning them?

Hi, I have a web server running on Debian 6.0.4 in a computer outside my university, but the web URL is blocked by my university, the security group of the university said because it was scanning computers inside university. I could not find any applications in my web server are doing... (3 Replies)
Discussion started by: hce
3 Replies

4. Solaris

Openssl 0.9.8r

Hi Peeps, Having trouble compiling openssl 0.9.8r on Solaris 10 x86. The make test fails when running the shatests (segmentation faults). There is a PROBLEM file that references a file called values.c. Anyone know whereabouts in the source tree you put this file as the file doesn't tell you... (2 Replies)
Discussion started by: callmebob
2 Replies

5. UNIX for Advanced & Expert Users

Using openssl

All, I am new to openssl and I have not been able to figure out exactly how to use it. What I need to do is to create a shell script which FTPS's (SFTP is not allowed on my project) a file to a mainframe. The mainframe will not initiate a session with my server. Question. Are the packages... (7 Replies)
Discussion started by: MichaelInDC
7 Replies

6. UNIX for Dummies Questions & Answers

openssl ca ke issue

Hi everybody: here is my tale: I need to create some ssl certificates, so I did it with my Linux; I created de CA key and all the other stuff, and of course the certificates needed. The thing is I had to replace mi hard drive and I backed up all the info but I forgot to backup the /etc/ssl. Of... (0 Replies)
Discussion started by: piltrafa
0 Replies

7. UNIX for Advanced & Expert Users

openssl help

I ungraded my openssl on sun solaris 8 from openssl 0.9.6c to openssl 0.9.6g the ungrade went fine but when I tried to ssh in to server, I received the following error message "ld.so.1: ./sshd: fatal: relocation error: file /usr/local/ssl/lib/libcrypto.so.0.9.6: symbol main: referenced symbol... (2 Replies)
Discussion started by: hassan2
2 Replies
Login or Register to Ask a Question