Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Merge pull request #8 from coolaj86/patch-1

typo fix one -> once
latest commit 492d8c9562
@agl authored
Failed to load latest commit information.
README.markdown typo fix one -> once
convert_mozilla_certdata.go Fixups from tiran's pull request.


Extracting Mozilla's Root Certificates

When people need a list of root certificates, they often turn to Mozilla's. However, Mozilla doesn't produce a nice list of PEM encoded certificate, rather they keep them in a form which is convenient for NSS to build from:

Several people have written quick scripts to try and convert this into PEM format, but they often miss something critical: some certificates are explicitly distrusted. These include the DigiNotar certificates and the misissued COMODO certificates. If you don't parse the trust records from the NSS data file, then you end up trusting these!

So this is a tool that I wrote for converting the NSS file to PEM format which is also aware of the trust records. It can be built with Go1. See, but don't pass "-u release" when fetching the repository.

Once you have Go installed please do the following:

% curl -o certdata.txt
% go run convert_mozilla_certdata.go >
Something went wrong with that request. Please try again.