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>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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.

Solutions on the web

via Stack Overflow by K G
, 1 year ago
hostname in certificate didn't match: <opendata.bristol.gov.uk> != <*.api.eu.socrata.com> OR <*.api.eu.socrata.com> OR <api.eu.socrata.com>
via GitHub by flotho
, 2 years ago
hostname in certificate didn't match: <domain.tld> != <webserver>
via Oracle Community by Alan McLeod, 1 year ago
hostname in certificate didn't match: <download.oracle.com> != <a248.e.akamai.net> OR <*.akamaihd.net> OR <*.akamaihd-staging.net> OR <a248.e.akamai.net> OR <*.akamaized.net> OR <*.akamaized-staging.net>
via Google Groups by Simon Doran, 1 year ago
hostname in certificate didn't match: <localhost> != <XXXXXX> OR <XXXXXX> // I overwrote the real value.
via atlassian.com by Unknown author, 1 year ago
hostname in certificate didn't match: <jira.atlassian.com> != <unknown>
via Stack Overflow by Ben Dilts
, 2 years ago
hostname in certificate didn't match: &lt;localhost&gt; != &lt;*.mydomain.com&gt; OR &lt;*.mydomain.com&gt; OR &lt;mydomain.com&gt;
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 undefined.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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 10 months ago
5 times, 3 weeks ago
9 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.