HTTPS with self-signed certificate produces handshake error?

TrustStore. Load(new FileInputStream(keystoreFile), "mypass".toCharArray()) You seem to have your keystore and your truststore confused. The keystore contains your private key and certificate.

The truststore contains other people's certificates.

TrustStore. Load(new FileInputStream(keystoreFile), "mypass".toCharArray()); You seem to have your keystore and your truststore confused. The keystore contains your private key and certificate.

The truststore contains other people's certificates.

I'm not an expert in this but it seems that a java.security. Keystore can contain all certs and private keys: download.oracle. Com/javase/6/docs/api/java/security/… – Peter Knego Sep 8 at 8:50 My keystore loaded from PKCS#12 file (.p12) sure does.

I listed all entries and there they are: private key, CA cert and user cert. The "truststore" is just a name of variable from original example. – Peter Knego Sep 8 at 8:51 +1 You were right: I need to set the keystore and separately the truststore.

They are the same file, but nevertheless you have to set it twice. – Peter Knego Sep 8 at 11:57 @Peter Knego Technically they are the same kind of file but from the security point of view they should be two separate files. That's why it's all specified that way.

The keystore contains your private key and should be subject to very high security, as it is your identity. The truststore just contains other people's public certificates and there is nothing secure about them whatsoever. In a large organization the people entitled to modify the keystore would be different from the people entitled to modify the truststore.

– EJP Sep 8 at 23:30.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions