This week's book giveaway is in the Functional programming forum.
We're giving away four copies of A Functional Approach to Java: Augmenting Object-Oriented Java Code with Functional Principles and have Ben Weidig on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

certificate format for cacerts

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a website that uses a self signed certificate and some java code that needs to use HttpsUrlConnection to access the site.

I know I need to get the certificate imported into cacerts but I am not sure exactly which certificate I should be importing. Rather, I have an export problem. In firefox, there is a plugin that lets you export the certificate in all sorts of formats:

X.509 Certificate (PEM) .crt extension

X.509 Certificate with chain (PEM) .crt extension

X.509 Certificate (DER) .der extension

X.509 Certificate (PKCS#7) .p7c extension

X.509 Certificate with chain (PKCS#7) .p7c extension


Which one should I choose if I want to then use keytool to import the certificate into cacerts?

Thanks,
Jim
 
James Ellis
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like this is the winner:

X.509 Certificate (PEM) .crt extension


 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic