0

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

George Murphy
  • 937
  • 2
  • 10
  • 16

1 Answers1

0

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.

Steffen Ullrich
  • 114,247
  • 10
  • 131
  • 172
  • Hi Steffen, can I just grab this link HTTP from curl.haxx.se: cacert.pem http://curl.haxx.se/ca/cacert.pem and save it as a .crt or should then use javaKeyUtil to insert the certificate in my trustStore.jks? Please spell all steps out. – George Murphy Jun 07 '14 at 23:54
  • @GeorgeMurphy: how about doing a bit of the work yourself. A quick search turns up: http://stackoverflow.com/questions/2138940/import-pem-into-java-key-store – Steffen Ullrich Jun 08 '14 at 06:40
  • Steffen Ullrich you assume wrong. I have been working on this for quite some time. Can do without the totally unhelpful false comments. – George Murphy Jun 09 '14 at 14:16
  • @GeorgeMurphy: sorry, but "please spell all steps out" does not show any efforts from your site. It would be better to show what you've tried. See also http://stackoverflow.com/about: "..Include details about what you have tried..." – Steffen Ullrich Jun 09 '14 at 15:54