Hi,
I want to use SSL simply to crypt data. It is *not* important to me to validate the identity of the server. So how do I convince javax.net.ssl.SSLSocketFactory and SSLSocket to accept *any* server certificate when I open a connection in my Java client?
I created the server certificate using OpenSSL and signed it by myself using an own certificate authority. I imported it using keytool, but then another question: How to set the keystored password programmatically in my client program?
The optimal solution would be to allow any server certificate by programming, not by keytool.
Does anyone have an idea?
P.S. I searched the whole tek-tips site already and found no answers
I want to use SSL simply to crypt data. It is *not* important to me to validate the identity of the server. So how do I convince javax.net.ssl.SSLSocketFactory and SSLSocket to accept *any* server certificate when I open a connection in my Java client?
I created the server certificate using OpenSSL and signed it by myself using an own certificate authority. I imported it using keytool, but then another question: How to set the keystored password programmatically in my client program?
The optimal solution would be to allow any server certificate by programming, not by keytool.
Does anyone have an idea?
P.S. I searched the whole tek-tips site already and found no answers