comparison Sphinx/source/developers/repositories.rst @ 522:53901a601ea2

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Oct 2020 13:35:39 +0200
parents a3c98aa2b94a
children 654e1614cec1
comparison
equal deleted inserted replaced
521:a3c98aa2b94a 522:53901a601ea2
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 = 5D:28:35:52:52:F9:D1:1C:C1:B5:CF:47:F0:9C:F8:1D:B0:4D:F1:BD 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 88
89 .. highlight:: bash 89 .. highlight:: bash
90 90
91 For reference, here is the command that was used to generate this SHA1 91 For reference, here is the command that was used to generate this SHA1
92 fingerprint (`click here for more information 92 fingerprint (`click here for more information
93 <https://wiki.fluidproject.org/display/fluid/Setting+Host+Fingerprints+for+Mercurial>`__):: 93 <https://wiki.fluidproject.org/display/fluid/Setting+Host+Fingerprints+for+Mercurial>`__)::
94 94
95 $ openssl s_client -connect hg.orthanc-server.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha1 -noout -in /dev/stdin 95 $ openssl s_client -servername hg.orthanc-server.com -connect hg.orthanc-server.com:443 \
96 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha1 -noout -in /dev/stdin
96 97
97 **Important:** As our certificates are changed periodically, you'll 98 **Important:** As our certificates are changed periodically, you'll
98 have to regularly update your configuration file once Mercurial 99 have to regularly update your configuration file once Mercurial
99 complains about an unexpected fingerprint. 100 complains about an unexpected fingerprint.
100 101
114 <https://www.mercurial-scm.org/doc/hgrc.5.html#files>`__ of Mercurial 115 <https://www.mercurial-scm.org/doc/hgrc.5.html#files>`__ of Mercurial
115 (by default on Microsoft Windows, ``%USERPROFILE%\Mercurial.ini``), 116 (by default on Microsoft Windows, ``%USERPROFILE%\Mercurial.ini``),
116 and add the following lines:: 117 and add the following lines::
117 118
118 [hostsecurity] 119 [hostsecurity]
119 hg.orthanc-server.com:fingerprints=sha256:F4:E2:A3:2A:77:C7:E3:13:70:2C:41:EA:84:80:6B:C0:D4:84:47:B9:EF:B9:9D:B4:A6:85:43:C4:FA:8D:27:E3 120 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
120 121
121 .. highlight:: bash 122 .. highlight:: bash
122 123
123 For reference, here is the command that was used to generate this 124 For reference, here is the command that was used to generate this
124 SHA256 fingerprint (`click here for more information 125 SHA256 fingerprint (`click here for more information
125 <https://stackoverflow.com/a/56579497/881731>`__):: 126 <https://stackoverflow.com/a/56579497/881731>`__)::
126 127
127 $ openssl s_client -connect hg.orthanc-server.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin 128 $ openssl s_client -servername hg.orthanc-server.com -connect hg.orthanc-server.com:443 \
129 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin
128 130
129 131
130 Write access 132 Write access
131 ^^^^^^^^^^^^ 133 ^^^^^^^^^^^^
132 134