Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. SSLSocketFactory.connectSocket() has thrown a SSLException
    Apache HttpClient
    8
    5
    5
  2. AbstractVerifier.verify() has thrown a SSLException
    Apache HttpClient
    22
    25
    8

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
javax.net.ssl.SSLException: hostname in certificate didn't match: <mtvniph1-f.akamaihd.net> != <a248.e.akamai.net>
3 matching frames hidden
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:132)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:321)

External results for this pattern (10)

  1. nightwolfzorvia GitHub3 months ago
    hostname in certificate didn't match: <repo.build.coy.com.au> != <docker.build.coy.com.au> OR <docker.build.coy.com.au> OR <www.docker.build.coy.com.au>
    Show stack trace
  2. rmricevia GitHub4 months ago
    Communication with the service provider failed: hostname in certificate didn't match: <master.apis.dev.openstreetmap.org> != <apis.dev.openstreetmap.org> OR <apis.dev.openstreetmap.org>
    Show stack trace
  3. Night Wolfvia Jenkins JIRA4 months ago
    hostname in certificate didn't match: <repo.build.coy.com.au> != <docker.build.coy.com.au> OR <docker.build.coy.com.au> OR <www.docker.build.coy.com.au>
    Show stack trace
  4. Unknown authorvia iteye.com4 months ago
    hostname in certificate didn't match: <dynamic.12306.cn/123.103.14.224> != <dynamic.12306.cn>
    Show stack trace
  5. Tim Moore [Atlassian]via Atlassian JIRA4 months ago
    hostname in certificate didn't match: <studio-nightly-gapps.jira-dev.com> != <*.jira.com>
    Show stack trace
  6. Diego Alonso [Atlassian]via Atlassian JIRA4 months ago
    hostname in certificate didn't match: <...> != <*....>
    Show stack trace
  7. Unknown authorvia infoq.com4 months ago
    Unable to read repository at .
    Show stack trace
  8. Atl LEDvia Stack Overflow4 months ago
    hostname in certificate didn't match error. It's our hope to patch this temporarily while we write the replacement. I've read several SO questions on the mater (eg 1, 2, 3, 4) and it seemed like Will Sargent's solution was the best choice. Unfortunately I'm going into the server with utterly no documentation or returned email from the group that set it up (luckily none of the Java was obfuscated per policy). I looked for any keystore files (searching for "keystore" in the file name or .jks files), but I didn't find any. Which lead me think that I needed to make a new one and initialize it prior to calling the webClient.getPage. So far I have been able to make the .jks file just fine, it's just it doesn't change the hostname match error. Is there a way to see what keystore if any is being used by a servlet, and what its location happens to be? Alternatively, what is the proper way to make a new one and have it be used/initialized? Additional Details There are a few things about this that are odd to me. The main one is I don't understand why the hostname wouldn't be correct. The site being pulled is https://www.ncbi.nlm.nih.gov/account/ which if you navigate to it in a browser certainly pulls the correct certificate. I'm wondering if it's because the WebClient(BrowserVersion.FIREFOX_17) is set to the archaic FIREFOX_17. Should I just change that from 17 to 31? There are plenty of things that could be upgraded, but as we're going to start from scratch to have documentation, I want to change as little as possible on the old instance to hopefully keep it running for a few more months. The FIREFOX version installed on the server isn't close to current ether (not that it's used), but I was thinking changing the BrowserVersion just changed how the reply was formatted. Here is the code, ending on the line throwing the error: private Vector updateRDLpubs(Vector orderList, DataSource dataSource) throws Exception { Vector removeList = new Vector(); Vector historyList = new Vector(); try { SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"); Calendar cal = Calendar.getInstance(); cal.add(5, -5); Date days5Back = cal.getTime(); WebClient webClient = new WebClient(BrowserVersion.FIREFOX_17); webClient.setThrowExceptionOnFailingStatusCode(false); HtmlPage page = (HtmlPage)webClient.getPage("https://www.ncbi.nlm.nih.gov/account/");
    Show stack trace
  9. Alan McLeodvia Oracle Community4 months 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>
    Show stack trace
  10. sebbvia hc-httpclient-users4 months ago
    hostname in certificate didn't match: <portal.sun.com> != <*.oracle.com> This is because Oracle took over Sun and did not ensure continuity of URLs.
    Show stack trace