WebFaction
Community site: login faq

I had Webfaction activate SSL on my website and provided them the SSL cert and key. Everything appears to be correct when I view the website in a browser.

However, when I execute a request from a Java app I've built, I see that webfaction's SSL cert (not mine) is being served up, and the mismatch causes an error:

javax.net.ssl.SSLException: hostname in certificate didn't match: <www.trustedquote.com> != <*.webfaction.com> OR <*.webfaction.com> OR <webfaction.com>

Can anyone resolve this issue? My Java code is very straightforward:

try {
    HttpClient client = new DefaultHttpClient();
    HttpResponse response = client.execute(new HttpHead("https://www.trustedquote.com/life-insurance-quotes"));
    System.out.println(response);
} catch (Exception ex) {
    ex.printStackTrace();
}

asked 07 Sep '12, 14:03

TwitTheKnife
27410
accept rate: 0%

edited 07 Sep '12, 14:05


The issue is likely related to Server Name Indication. Most modern browsers support it, however some do not. SNI is how we assign SSL certificates without the need for a dedicated IP address. The solution would be to submit a support ticket and request we add a Dedicated IP Address to the account for $5/month.

permanent link

answered 07 Sep '12, 18:50

johns
5.4k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×93
×75
×22

question asked: 07 Sep '12, 14:03

question was seen: 2,749 times

last updated: 07 Sep '12, 18:50

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM