Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 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

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 '14 at 9:59

Your Answer


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.