javax.net.ssl.SSLException: hostname in certificate didn't match: <opendata.bristol.gov.uk> != <*.api.eu.socrata.com> OR <*.api.eu.socrata.com> OR <api.eu.socrata.com>

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

WireMock, until 1.5.2, only worked with keystores with the password: "password", this was fixed in 1.5.3. Another issue that causes this exception was fixed in 1.5.3 as well.

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

  • HttpClientFactoryTest failure
    via GitHub by oxtoacart
    ,
  • Error with HTTPS - 443
    via GitHub by frekele
    ,
    • javax.net.ssl.SSLException: hostname in certificate didn't match: <opendata.bristol.gov.uk> != <*.api.eu.socrata.com> OR <*.api.eu.socrata.com> OR <api.eu.socrata.com> at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:227) at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54) at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:147) at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:437) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784) at RESTTest.main(RESTTest.java:17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

    Users with the same issue

    rp
    rp1 times, last one,
    jk
    jk3 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Andreas Häber
    Andreas Häber1 times, last one,
    7 more bugmates