javax.net.ssl.SSLException: hostname in certificate didn't match: <dynamic.12306.cn/123.103.14.224> != <dynamic.12306.cn>

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 iteye.com by Unknown author, 1 year ago
via Stack Overflow by DecafCoder
, 2 years ago
hostname in certificate didn't match: &lt;ajax.googleapis.com/173.194.67.95&gt; != &lt;*.googleapis.com&gt; OR &lt;*.googleapis.com&gt; OR &lt;googleapis.com&gt;
via Stack Overflow by Radek S
, 2 years ago
via Google Groups by Alex, 2 years ago
hostname in certificate didn't match: <mtvniph1-f.akamaihd.net> != <a248.e.akamai.net>
via GitHub by openhab-migration
, 2 years ago
hostname in certificate didn't match: <api.dropbox.com/108.160.162.54> != <*.dropbox.com>
via Stack Overflow by Alex Wise
, 2 years ago
hostname in certificate didn't match: &lt;mtvniph1-f.akamaihd.net&gt; != &lt;a248.e.akamai.net&gt;
javax.net.ssl.SSLException: hostname in certificate didn't match: <dynamic.12306.cn/123.103.14.224> != <dynamic.12306.cn>
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:228)
at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:149)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:130)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:495)
at org.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:62)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at com.bincode.util.HttpUtils.doGetFile(HttpUtils.java:313)
at com.bincode.start.OrderMain.waitSetSubmitCode(OrderMain.java:191)
at com.bincode.start.OrderMain.main(OrderMain.java:34)

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.