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.)

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

2 Comments

I am confused. I must create a keystore with its private key and import server certificate to it?
@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, without the Restlet-specific config and without using the "wrong way").

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.