tests/test-https.t
changeset 28549 e01bd7385f4f
parent 28525 dfb21c34e07d
child 28847 3e576fe66715
equal deleted inserted replaced
28548:b7a31068cc80 28549:e01bd7385f4f
   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]