javax.net.ssl.SSLException

hostname in certificate didn't match: <expectedhost> != <defaulthost>

Samebug tips1

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.


rafaelrafael

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

Solutions on the web79

  • via Unknown by Martin Burger,
  • via Unknown by Martin Burger,
  • via Stack Overflow by Nani
    ,
  • Stack trace

    • javax.net.ssl.SSLException: hostname in certificate didn't match: <expectedhost> != <defaulthost> at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:220)

    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

    VeryRedChrisVeryRedChris
    3 times, last one
    joni1408joni1408
    502 times, last one
    dmitrydmitry
    Once,
    nasimknasimk
    5 times, last one
    Andreas HäberAndreas Häber
    Once,
    6 more bugmates