hg push to LAN https with self signed cert fails: "remote: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]"

Issue #959 resolved
Paul
created an issue

Server is Windows 2008 R2 Client is Win10, already set up verifyhostfingerprints for hg

Here's the log from hg:

Public Statistics% % hg push --debug https://walle/scm/hg/Public-Info/Statistics
pushing to https://walle/scm/hg/Public-Info/Statistics
using https://walle/scm/hg/Public-Info/Statistics
sending capabilities command
using auth.walle.* for authentication
walle certificate matched fingerprint sha1:14:67:d3:93:80:61:1a:ab:c9:06:58:05:ce:6e:95:ec:60:d5:2e:be
query 1; heads
sending batch command
using auth.walle.* for authentication
searching for changes
all remote heads known locally
preparing listkeys for "phases"
sending listkeys command
using auth.walle.* for authentication
received listkey for "phases": 15 bytes
checking for updated bookmarks
preparing listkeys for "bookmarks"
sending listkeys command
using auth.walle.* for authentication
received listkey for "bookmarks": 0 bytes
sending branchmap command
using auth.walle.* for authentication
sending branchmap command
using auth.walle.* for authentication
preparing listkeys for "bookmarks"
sending listkeys command
using auth.walle.* for authentication
received listkey for "bookmarks": 0 bytes
2 changesets found
list of changesets:
e74f3838945f2ea3246a0ba32b76f58c1052e982
33728f829c1587831f1f2fb5907de3345d397203
sending unbundle command
sending 47036 bytes
using auth.walle.* for authentication
keyring: base url: https://walle/scm/hg/Public-Info/Statistics, url user: , url pwd: 
keyring: Checking for hgrc info about url https://walle/scm/hg/Public-Info/Statistics, user None
keyring: Password url: https://walle, user: paul, password:  (prefix: walle)
keyring: looking for password (user paul, url https://walle)
keyring: Password found in keyring
using auth.walle.* for authentication
walle certificate matched fingerprint sha1:14:67:d3:93:80:61:1a:ab:c9:06:58:05:ce:6e:95:ec:60:d5:2e:be
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 2 changesets with 3 changes to 2 files
remote: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>transaction abort!
remote: rollback completed
preparing listkeys for "phases"
sending listkeys command
using auth.walle.* for authentication
received listkey for "phases": 15 bytes
[command returned code 1 Wed Jan 10 15:39:12 2018]

If I comment out the changegroup.scm hooks of .hg/hgrc from the server, the push works.

Comments (7)

  1. Log in to comment