comparison Sphinx/source/developers/repositories.rst @ 514:55bd72f6df8a

update mercurial fingerprints
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Sep 2020 08:06:54 +0200
parents 2ac9eacb4ade
children a3c98aa2b94a
comparison
equal deleted inserted replaced
513:f22b3743fd3f 514:55bd72f6df8a
82 82
83 You might have to set up a host fingerprint in the Mercurial 83 You might have to set up a host fingerprint in the Mercurial
84 configuration. Add the following lines to your ``~/.hgrc`` file:: 84 configuration. Add the following lines to your ``~/.hgrc`` file::
85 85
86 [hostfingerprints] 86 [hostfingerprints]
87 hg.orthanc-server.com = e3:71:4e:c9:2f:b6:ea:b1:74:fb:c1:9e:a4:3e:8f:45:31:b3:04:d3 87 hg.orthanc-server.com = 1B:29:E6:DE:95:7B:6B:21:59:2C:0E:C4:85:B9:64:C9:08:84:9B:98
88
89 .. highlight:: bash
90
91 For reference, here is the command that was used to generate this SHA1
92 fingerprint (`click here for more information
93 <https://wiki.fluidproject.org/display/fluid/Setting+Host+Fingerprints+for+Mercurial>`__)::
94
95 $ openssl s_client -connect hg.orthanc-server.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha1 -noout -in /dev/stdin
96
97 **Important:** As our certificates are changed periodically, you'll
98 have to regularly update your configuration file once Mercurial
99 complains about an unexpected fingerprint.
88 100
89 101
90 Recent versions of Mercurial 102 Recent versions of Mercurial
91 ............................ 103 ............................
92 104
102 <https://www.mercurial-scm.org/doc/hgrc.5.html#files>`__ of Mercurial 114 <https://www.mercurial-scm.org/doc/hgrc.5.html#files>`__ of Mercurial
103 (by default on Microsoft Windows, ``%USERPROFILE%\Mercurial.ini``), 115 (by default on Microsoft Windows, ``%USERPROFILE%\Mercurial.ini``),
104 and add the following lines:: 116 and add the following lines::
105 117
106 [hostsecurity] 118 [hostsecurity]
107 hg.orthanc-server.com:fingerprints=sha256:B9:3B:E5:04:25:F7:11:14:0E:29:1F:65:4F:6D:C8:4F:A2:E5:53:E9:80:1C:2E:EF:02:06:45:96:87:1C:EC:BC 119 hg.orthanc-server.com:fingerprints=sha256:6A:D9:B8:88:C2:96:F1:00:B1:5E:CF:80:BB:CC:23:C5:73:18:D1:7C:7A:7B:10:3E:62:1B:08:87:42:F1:1E:BF
108 120
109 .. highlight:: bash 121 .. highlight:: bash
110 122
111 For reference, here is the command that was used to generate this 123 For reference, here is the command that was used to generate this
112 fingerprint (`click here for more information 124 SHA256 fingerprint (`click here for more information
113 <https://stackoverflow.com/a/56579497/881731>`__):: 125 <https://stackoverflow.com/a/56579497/881731>`__)::
114 126
115 $ openssl s_client -connect hg.orthanc-server.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin 127 $ openssl s_client -connect hg.orthanc-server.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin
116 128
117 129