Certificate name != hostname -> does not throw exception!?
Hi all,
When a certificate's subject name != hostname, a hostname not match exception should be thrown.
But this is not so in my case, could someone provide me some hint?
I am suspecting if it's got something to do with that I am using a truststore or security policy...
The configuration is:
Server -
Certificate.cert (signed by my own CA, subject name=some computer name)
TrustStore.cert (my own CA certificate)
Policy file (which grants all security permissions)
Client -
Certificate.cert (signed by my own CA, subject name=some computer name)
TrustStore.cert (my own CA certificate)
Sever requires client side authentication, so client has a certificate too.
Runtime parameters:
-Djava.security.policy="policy"
-Djavax.net.ssl.keyStore=Certificate.cert
-Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.trustStore=TrustStore.cert
Regards,
Eddie

