tests/test-https.t
changeset 29519 fe7158fced4b
parent 29500 4b16a5bd9948
child 29526 9d02bed8477b
equal deleted inserted replaced
29518:348b2b9da703 29519:fe7158fced4b
   252 
   252 
   253 cacert mismatch
   253 cacert mismatch
   254 
   254 
   255   $ hg -R copy-pull pull --config web.cacerts="$CERTSDIR/pub.pem" \
   255   $ hg -R copy-pull pull --config web.cacerts="$CERTSDIR/pub.pem" \
   256   > https://127.0.0.1:$HGPORT/
   256   > https://127.0.0.1:$HGPORT/
   257   pulling from https://127.0.0.1:$HGPORT/
   257   pulling from https://127.0.0.1:$HGPORT/ (glob)
   258   abort: 127.0.0.1 certificate error: certificate is for localhost
   258   abort: 127.0.0.1 certificate error: certificate is for localhost (glob)
   259   (set hostsecurity.127.0.0.1:certfingerprints=sha256:62:09:97:2f:97:60:e3:65:8f:12:5d:78:9e:35:a1:36:7a:65:4b:0e:9f:ac:db:c3:bc:6e:b6:a3:c0:16:e0:30 config setting or use --insecure to connect insecurely)
   259   (set hostsecurity.127.0.0.1:certfingerprints=sha256:62:09:97:2f:97:60:e3:65:8f:12:5d:78:9e:35:a1:36:7a:65:4b:0e:9f:ac:db:c3:bc:6e:b6:a3:c0:16:e0:30 config setting or use --insecure to connect insecurely)
   260   [255]
   260   [255]
   261   $ hg -R copy-pull pull --config web.cacerts="$CERTSDIR/pub.pem" \
   261   $ hg -R copy-pull pull --config web.cacerts="$CERTSDIR/pub.pem" \
   262   > https://127.0.0.1:$HGPORT/ --insecure
   262   > https://127.0.0.1:$HGPORT/ --insecure
   263   pulling from https://127.0.0.1:$HGPORT/
   263   pulling from https://127.0.0.1:$HGPORT/ (glob)
   264   warning: connection security to 127.0.0.1 is disabled per current settings; communication is susceptible to eavesdropping and tampering
   264   warning: connection security to 127.0.0.1 is disabled per current settings; communication is susceptible to eavesdropping and tampering (glob)
   265   searching for changes
   265   searching for changes
   266   no changes found
   266   no changes found
   267   $ hg -R copy-pull pull --config web.cacerts="$CERTSDIR/pub-other.pem"
   267   $ hg -R copy-pull pull --config web.cacerts="$CERTSDIR/pub-other.pem"
   268   pulling from https://localhost:$HGPORT/
   268   pulling from https://localhost:$HGPORT/
   269   abort: error: *certificate verify failed* (glob)
   269   abort: error: *certificate verify failed* (glob)
   373   > --config web.cacerts="$CERTSDIR/pub.pem"
   373   > --config web.cacerts="$CERTSDIR/pub.pem"
   374   pulling from https://localhost:$HGPORT/
   374   pulling from https://localhost:$HGPORT/
   375   searching for changes
   375   searching for changes
   376   no changes found
   376   no changes found
   377   $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull https://127.0.0.1:$HGPORT/ --config hostfingerprints.127.0.0.1=914f1aff87249c09b6859b88b1906d30756491ca
   377   $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull https://127.0.0.1:$HGPORT/ --config hostfingerprints.127.0.0.1=914f1aff87249c09b6859b88b1906d30756491ca
   378   pulling from https://127.0.0.1:$HGPORT/
   378   pulling from https://127.0.0.1:$HGPORT/ (glob)
   379   searching for changes
   379   searching for changes
   380   no changes found
   380   no changes found
   381 
   381 
   382 Test https with cert problems through proxy
   382 Test https with cert problems through proxy
   383 
   383