diff doc/hgrc.5.txt @ 10409:4c94a3df4b10

url: SSL server certificate verification using web.cacerts file (issue1174)
author Henrik Stuart <hg@hstuart.dk>
date Wed, 10 Feb 2010 20:27:46 +0100
parents 935ef1836b2f
children 4cfd0d56be6d
line wrap: on
line diff
--- a/doc/hgrc.5.txt	Wed Feb 10 20:08:18 2010 +0100
+++ b/doc/hgrc.5.txt	Wed Feb 10 20:27:46 2010 +0100
@@ -873,6 +873,26 @@
     Base URL to use when publishing URLs in other locations, so
     third-party tools like email notification hooks can construct
     URLs. Example: ``http://hgserver/repos/``.
+``cacerts``
+    Path to file containing a list of PEM encoded certificate authorities
+    that may be used to verify an SSL server's identity. The form must be
+    as follows::
+
+        -----BEGIN CERTIFICATE-----
+        ... (certificate in base64 PEM encoding) ...
+        -----END CERTIFICATE-----
+        -----BEGIN CERTIFICATE-----
+        ... (certificate in base64 PEM encoding) ...
+        -----END CERTIFICATE-----
+
+    This feature is only supported when using Python 2.6. If you wish to
+    use it with earlier versions of Python, install the backported
+    version of the ssl library that is available from
+    ``http://pypi.python.org``.
+
+    You can use OpenSSL's CA certificate file if your platform has one.
+    On most Linux systems this will be ``/etc/ssl/certs/ca-certificates.crt``.
+    Otherwise you will have to generate this file manually.
 ``contact``
     Name or email address of the person in charge of the repository.
     Defaults to ui.username or ``$EMAIL`` or "unknown" if unset or empty.