Skip to content

Instantly share code, notes, and snippets.

@wyanez
Created August 8, 2011 16:05
Show Gist options
  • Save wyanez/1132048 to your computer and use it in GitHub Desktop.
Save wyanez/1132048 to your computer and use it in GitHub Desktop.
[mercurial] Corregir error con certificado del servidor
Si al hacer un hg
$ hg clone https://192.168.10.205/hg/sas_2011
abort: error: _ssl.c:497: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
1) Ejecutamos esta linea en la consola:
$echo quit |openssl s_client -connect 192.168.10.205:443 2>/dev/null|awk '/---BEG/,/--END/' |openssl x509 -fingerprint -noout
2) y obtenemos:
SHA1 Fingerprint=64:A4:7F:0C:39:A4:81:00:81:BC:44:75:18:31:32:22:3F:EB:E8:BE
3) Editamos ~/.hgrc y agregamos:
[hostfingerprints]
192.168.10.205 = 64:A4:7F:0C:39:A4:81:00:81:BC:44:75:18:31:32:22:3F:EB:E8:BE
y listo...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment