com.sun.jersey.api.client.ClientHandlerException

javax.net.ssl.SSLException: Certificate for <localhost> doesn't match common name of the certificate subject: my-ssl-test

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web18

Stack trace

  • com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Certificate for <localhost> doesn't match common name of the certificate subject: my-ssl-test at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)[jersey-apache-client4-1.19.1.jar:1.19.1] at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)[jersey-client-1.19.1.jar:1.19.1] at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)[eureka-client-1.4.8.jar:1.4.8] at com.sun.jersey.api.client.Client.handle(Client.java:652)[jersey-client-1.19.1.jar:1.19.1] at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)[jersey-client-1.19.1.jar:1.19.1] at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)[jersey-client-1.19.1.jar:1.19.1] at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)[jersey-client-1.19.1.jar:1.19.1] at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.register(AbstractJerseyEurekaHttpClient.java:56)[eureka-client-1.4.8.jar:1.4.8] at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$1.execute(EurekaHttpClientDecorator.java:59)[eureka-client-1.4.8.jar:1.4.8]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Александр ПастуховАлександр Пастухов
Unknown visitor
Unknown visitorOnce,