WebFaction
Community site: login faq

HI there,

I have set up version 2.2.3 of Mercurial successfully on my account, and a colleague has also managed to set it up. We have an issue with https where we need to use "--insecure" to run some commands as the https certificate found is the webfaction certificate rather than a wild card certificate we are using for the domain.

Is there a way to specify which certificate is used by mercurial?

Many thanks,

Stephen

asked 25 Sep '12, 03:12

stephendwolff
3114
accept rate: 0%

Can you provide the domain so that we can confirm that the certificate itself is operating as expected?

(25 Sep '12, 04:02) ryans ♦♦

The domain is https://support.monea.cc, thanks!

(25 Sep '12, 04:15) stephendwolff

Okay, it looks like the problem is that your software - in this case Mercurial and therefore python - is not configured to support Server Name Indication (SNI), so it retrieves the default (WebFaction) certificate when connecting. SNI is useful because it enables you to serve a custom SSL Certificate without requiring a dedicated IP address. However, not everything supports SNI.

One solution is to purchase a dedicated IP address for your website. If using a dedicated IP, then the certificate will be served as the default for that IP and not using SNI. Dedicated IP addresses are not free, though; they cost $5/month.

Another option is to configure your local software to support SNI. Support for SNI has already been added to Python, but only in Python 3.2 (python 2.x is only receiving bug fixes, not new features). But it seems like you could apply the patch (raw) against Python 2.6.1 manually.

permanent link

answered 25 Sep '12, 04:39

ryans ♦♦
5.0k93160
accept rate: 43%

Thanks Ryan, very helpful. We'll look into SNI in more detail... or possibly add the dedicated IP address. I've got round the problem temporarily by setting up a private Bitbucket repository, but that's not ideal!

(25 Sep '12, 04:42) stephendwolff
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:

×73
×27
×14
×6
×2

question asked: 25 Sep '12, 03:12

question was seen: 12,369 times

last updated: 25 Sep '12, 04:42

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