Search code examples
sslopensslkeystore

SSL convert url to .crt


How can I convert this url to a .crt file? https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1

Please do not say perl. I have openssl & jvakeyUtil Ultimately want to create a trustStore.jks


Solution

  • http://curl.haxx.se/docs/caextract.html has probably what you want. It contains the data already converted in the format you want. If you really want to convert the data yourself look at the source code of the mk-ca-bundle perl program which they used to create the converted data.