Closed yura910721 closed 3 years ago
Hey,
Looks like your certificate does not match the url you are connecting to.
Best regards, Marcel
I am using the same URL from certificate's CN, but I kept getting the same error. The only way I could solve it(probably not really a legitimate solution), was to follow guide at https://github.com/TooTallNate/Java-WebSocket/wiki/No-such-method-error-setEndpointIdentificationAlgorithm and override hostname checker provided by Android.
It allowed me to move past this issue, but as I said I am not sure it is just a workaround or a real solution. Either way, since I am no longer dealing with this issue, I am going to close it for now.
I am using library version 1.5.1 and Android OS version 7.1.2. I was trying to follow "SSLClientExample", but I keep getting "javax.net.ssl.SSLHandshakeException: No subjectAltNames on the certificate match" error. Can anyone point me in a direction what to do? I am completely stuck. I tried adding SAN to my server certificate and keep getting the same error. Here is my code.