javax.net.ssl.SSLException: hostname in certificate didn't match: <expectedhost> != <defaulthost>

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 Atlassian JIRA by Martin Burger, 1 year ago
hostname in certificate didn't match: <expectedhost> != <defaulthost>
via Atlassian JIRA by Martin Burger, 1 year ago
hostname in certificate didn't match: <expectedhost> != <defaulthost>
via GitHub by gsomoza
, 1 year ago
hostname in certificate didn't match: <strategery.harvestapp.com> != <*.harvest.systems> OR <*.harvest.systems> OR <harvest.systems>
via Stack Overflow by Nani
, 2 years ago
hostname in certificate didn't match: &lt;17.91.15.84&gt; != &lt;My-PC&gt;
via GitHub by ascheman
, 1 year ago
Certificate for <www.versioneye.com> doesn't match any of the subject alternative names: [sengaa.versioneye.com]
via Stack Overflow by mike
, 1 year ago
javax.net.ssl.SSLException: hostname in certificate didn't match: <expectedhost> != <defaulthost>

Users with the same issue

5 times, 2 months ago
5 times, 6 months ago
Once, 6 months ago
3 times, 1 year ago
3 times, 1 year ago

Write tip

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