0

I am beginner in Cryptography concept. I want connect to a server that use SSL for its security by OpenSSL. It give to me its certificate file in PEM format. I want use its certificate file in java. I think must convert server certificate file to Java TrustStore.

Do I think? Do you can a suggestion for me?

(Sorry if I am using the wrong terminology or grammar, I am learning english language.)

Sam
  • 6,770
  • 7
  • 50
  • 91

1 Answers1

2

You should be able to import it directly. See the documentation for the keytool utility.

user207421
  • 305,947
  • 44
  • 307
  • 483
  • I am confused. I must create a keystore with its private key and import server certificate to it? – Sam Apr 28 '12 at 12:24
  • @MJM, no you just create a keystore (which you'll use as a truststore) by importing this certificate into it (using `-import`, same command as [here](http://stackoverflow.com/a/9003614/372643), without the Restlet-specific config and without using the "wrong way"). – Bruno Apr 28 '12 at 12:36