Mercurial > hg
comparison tests/test-https.t @ 17298:59c14bf5a48c stable
pushkey: do not exchange obsole markers if feature is disabled
This apply to both push and pull both when client or server.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sat, 28 Jul 2012 13:33:06 +0200 |
parents | 28ed1c4511ce |
children | cf5c76017e11 |
comparison
equal
deleted
inserted
replaced
17297:6955d69a52a4 | 17298:59c14bf5a48c |
---|---|
123 adding changesets | 123 adding changesets |
124 adding manifests | 124 adding manifests |
125 adding file changes | 125 adding file changes |
126 added 1 changesets with 4 changes to 4 files | 126 added 1 changesets with 4 changes to 4 files |
127 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | 127 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) |
128 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | |
129 updating to branch default | 128 updating to branch default |
130 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 129 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
131 $ hg verify -R copy-pull | 130 $ hg verify -R copy-pull |
132 checking changesets | 131 checking changesets |
133 checking manifests | 132 checking manifests |
153 adding manifests | 152 adding manifests |
154 adding file changes | 153 adding file changes |
155 added 1 changesets with 1 changes to 1 files | 154 added 1 changesets with 1 changes to 1 files |
156 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | 155 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) |
157 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_URL=https://localhost:$HGPORT/ | 156 changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_URL=https://localhost:$HGPORT/ |
158 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | |
159 (run 'hg update' to get a working copy) | 157 (run 'hg update' to get a working copy) |
160 $ cd .. | 158 $ cd .. |
161 | 159 |
162 cacert configured in local repo | 160 cacert configured in local repo |
163 | 161 |
182 $ P=`pwd` hg -R copy-pull pull --insecure | 180 $ P=`pwd` hg -R copy-pull pull --insecure |
183 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | 181 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) |
184 pulling from https://localhost:$HGPORT/ | 182 pulling from https://localhost:$HGPORT/ |
185 searching for changes | 183 searching for changes |
186 no changes found | 184 no changes found |
187 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | |
188 | 185 |
189 cacert mismatch | 186 cacert mismatch |
190 | 187 |
191 $ hg -R copy-pull pull --config web.cacerts=pub.pem https://127.0.0.1:$HGPORT/ | 188 $ hg -R copy-pull pull --config web.cacerts=pub.pem https://127.0.0.1:$HGPORT/ |
192 abort: 127.0.0.1 certificate error: certificate is for localhost | 189 abort: 127.0.0.1 certificate error: certificate is for localhost |
195 $ hg -R copy-pull pull --config web.cacerts=pub.pem https://127.0.0.1:$HGPORT/ --insecure | 192 $ hg -R copy-pull pull --config web.cacerts=pub.pem https://127.0.0.1:$HGPORT/ --insecure |
196 warning: 127.0.0.1 certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | 193 warning: 127.0.0.1 certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) |
197 pulling from https://127.0.0.1:$HGPORT/ | 194 pulling from https://127.0.0.1:$HGPORT/ |
198 searching for changes | 195 searching for changes |
199 no changes found | 196 no changes found |
200 warning: 127.0.0.1 certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | |
201 $ hg -R copy-pull pull --config web.cacerts=pub-other.pem | 197 $ hg -R copy-pull pull --config web.cacerts=pub-other.pem |
202 abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) | 198 abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) |
203 [255] | 199 [255] |
204 $ hg -R copy-pull pull --config web.cacerts=pub-other.pem --insecure | 200 $ hg -R copy-pull pull --config web.cacerts=pub-other.pem --insecure |
205 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | 201 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) |
206 pulling from https://localhost:$HGPORT/ | 202 pulling from https://localhost:$HGPORT/ |
207 searching for changes | 203 searching for changes |
208 no changes found | 204 no changes found |
209 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | |
210 | 205 |
211 Test server cert which isn't valid yet | 206 Test server cert which isn't valid yet |
212 | 207 |
213 $ hg -R test serve -p $HGPORT1 -d --pid-file=hg1.pid --certificate=server-not-yet.pem | 208 $ hg -R test serve -p $HGPORT1 -d --pid-file=hg1.pid --certificate=server-not-yet.pem |
214 $ cat hg1.pid >> $DAEMON_PIDS | 209 $ cat hg1.pid >> $DAEMON_PIDS |
262 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --insecure --traceback | 257 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --insecure --traceback |
263 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | 258 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) |
264 pulling from https://localhost:$HGPORT/ | 259 pulling from https://localhost:$HGPORT/ |
265 searching for changes | 260 searching for changes |
266 no changes found | 261 no changes found |
267 warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) | |
268 | 262 |
269 Test https with cacert and fingerprint through proxy | 263 Test https with cacert and fingerprint through proxy |
270 | 264 |
271 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --config web.cacerts=pub.pem | 265 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --config web.cacerts=pub.pem |
272 pulling from https://localhost:$HGPORT/ | 266 pulling from https://localhost:$HGPORT/ |