Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am writing a SOAP client application on Ubuntu using OpenSSL and C++. I am having trouble getting my code to validate the server certificate even though it is a world famous betting site that I know has a valid certificate. Just to make sure I would like to check that it is the case and apparently PEM files are used to list valid certificates. Can anyone tell me where these files reside on my Ubuntu 12.04 installation? I have the ca-certificates package installed on my machine, so these files must be there somewhere?

share|improve this question

3 Answers 3

up vote 2 down vote accepted

So if you have installed ca-certificates you can easily find out where the files are. Open a terminal and enter

> dpkg -L ca-certificates
/.
/etc
/etc/ssl
/etc/ssl/certs
/etc/ca-certificates
/etc/ca-certificates/update.d
/usr
/usr/sbin
/usr/sbin/update-ca-certificates
/usr/share
/usr/share/ca-certificates
/usr/share/ca-certificates/spi-inc.org
…

So you'll see that all certificates are in /usr/share/ca-certificates. However the default location for certificates is /etc/ssl/certs. You might find additional certificates there.

share|improve this answer

Probably this would help you:

apt-get install apt-file

apt-file update

apt-file list ca-certificates

share|improve this answer

Try this

sudo find / |grep "\.pem"

This will list all the .pem files present on your system and their full path.

share|improve this answer
    
This is not really an answer. –  guntbert May 30 at 9:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.