login community 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 Sep 25 '12 at 03:12

stephendwolff's gravatar image

stephendwolff
32

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

(Sep 25 '12 at 04:02) ryans ♦♦ ryans's gravatar image

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

(Sep 25 '12 at 04:15) stephendwolff stephendwolff's gravatar image

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.

answered Sep 25 '12 at 04:39

ryans's gravatar image

ryans ♦♦
29361420

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!

(Sep 25 '12 at 04:42) stephendwolff stephendwolff's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×37
×17
×12
×4
×1

Asked: Sep 25 '12 at 03:12

Seen: 448 times

Last updated: Sep 25 '12 at 04:42

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited