262 searching for changes |
262 searching for changes |
263 no changes found |
263 no changes found |
264 |
264 |
265 Test server cert which isn't valid yet |
265 Test server cert which isn't valid yet |
266 |
266 |
267 $ hg -R test serve -p $HGPORT1 -d --pid-file=hg1.pid --certificate=server-not-yet.pem |
267 $ hg serve -R test -p $HGPORT1 -d --pid-file=hg1.pid --certificate=server-not-yet.pem |
268 $ cat hg1.pid >> $DAEMON_PIDS |
268 $ cat hg1.pid >> $DAEMON_PIDS |
269 $ hg -R copy-pull pull --config web.cacerts=pub-not-yet.pem https://localhost:$HGPORT1/ |
269 $ hg -R copy-pull pull --config web.cacerts=pub-not-yet.pem https://localhost:$HGPORT1/ |
270 pulling from https://localhost:$HGPORT1/ |
270 pulling from https://localhost:$HGPORT1/ |
271 abort: error: *certificate verify failed* (glob) |
271 abort: error: *certificate verify failed* (glob) |
272 [255] |
272 [255] |
273 |
273 |
274 Test server cert which no longer is valid |
274 Test server cert which no longer is valid |
275 |
275 |
276 $ hg -R test serve -p $HGPORT2 -d --pid-file=hg2.pid --certificate=server-expired.pem |
276 $ hg serve -R test -p $HGPORT2 -d --pid-file=hg2.pid --certificate=server-expired.pem |
277 $ cat hg2.pid >> $DAEMON_PIDS |
277 $ cat hg2.pid >> $DAEMON_PIDS |
278 $ hg -R copy-pull pull --config web.cacerts=pub-expired.pem https://localhost:$HGPORT2/ |
278 $ hg -R copy-pull pull --config web.cacerts=pub-expired.pem https://localhost:$HGPORT2/ |
279 pulling from https://localhost:$HGPORT2/ |
279 pulling from https://localhost:$HGPORT2/ |
280 abort: error: *certificate verify failed* (glob) |
280 abort: error: *certificate verify failed* (glob) |
281 [255] |
281 [255] |