PDA

View Full Version : HTTPS AUthentication Error: No subject alternative names present


smcelroy
07-11-2008, 01:38 PM
Hello,

I have a problem down loading a file via HTTPS. I'm getting the following message: No subject alternative names present.

I have found the following work around on the web, but this definitely not a long term solution.


httpsConn.setHostnameVerifier(new HostnameVerifier()
{
@Override
public boolean verify(String arg0, SSLSession arg1) {
return true;
}
});

Does anyone know the real solution to this? I am using java 1.6 and the certificate has been retrieved from the JScape FTP Server.

Thanks.

mjawwad
12-02-2008, 04:07 AM
One possible reason you may get this error is that the Common Name provided is not correct. When you generate a certificate from Jscape Secure FTP Server it will ask for a common name - try entering "localhost" (I am assuming you are testing this on your local machine and have created a domain called 'localhost').

Best Regards,