tests/test-https.t
changeset 29411 e1778b9c8d53
parent 29356 93b83ef78d1e
child 29445 072e4a595607
equal deleted inserted replaced
29410:222f6834c69a 29411:e1778b9c8d53
   101   adding file changes
   101   adding file changes
   102   added 1 changesets with 4 changes to 4 files
   102   added 1 changesets with 4 changes to 4 files
   103 
   103 
   104   $ DISABLECACERTS="--config devel.disableloaddefaultcerts=true"
   104   $ DISABLECACERTS="--config devel.disableloaddefaultcerts=true"
   105 
   105 
   106 clone via pull
   106 Inability to verify peer certificate will result in abort
   107 
   107 
   108   $ hg clone https://localhost:$HGPORT/ copy-pull $DISABLECACERTS
   108   $ hg clone https://localhost:$HGPORT/ copy-pull $DISABLECACERTS
   109   warning: certificate for localhost not verified (set hostsecurity.localhost: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 or web.cacerts config settings)
   109   abort: unable to verify security of localhost (no loaded CA certificates); refusing to connect
       
   110   (see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error or set hostsecurity.localhost:fingerprints=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 to trust this server)
       
   111   [255]
       
   112 
       
   113   $ hg clone --insecure https://localhost:$HGPORT/ copy-pull
       
   114   warning: connection security to localhost is disabled per current settings; communication is susceptible to eavesdropping and tampering
   110   requesting all changes
   115   requesting all changes
   111   adding changesets
   116   adding changesets
   112   adding manifests
   117   adding manifests
   113   adding file changes
   118   adding file changes
   114   added 1 changesets with 4 changes to 4 files
   119   added 1 changesets with 4 changes to 4 files
   131   $ cd copy-pull
   136   $ cd copy-pull
   132   $ echo '[hooks]' >> .hg/hgrc
   137   $ echo '[hooks]' >> .hg/hgrc
   133   $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc
   138   $ echo "changegroup = printenv.py changegroup" >> .hg/hgrc
   134   $ hg pull $DISABLECACERTS
   139   $ hg pull $DISABLECACERTS
   135   pulling from https://localhost:$HGPORT/
   140   pulling from https://localhost:$HGPORT/
   136   warning: certificate for localhost not verified (set hostsecurity.localhost: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 or web.cacerts config settings)
   141   abort: unable to verify security of localhost (no loaded CA certificates); refusing to connect
       
   142   (see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error or set hostsecurity.localhost:fingerprints=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 to trust this server)
       
   143   [255]
       
   144 
       
   145   $ hg pull --insecure
       
   146   pulling from https://localhost:$HGPORT/
       
   147   warning: connection security to localhost is disabled per current settings; communication is susceptible to eavesdropping and tampering
   137   searching for changes
   148   searching for changes
   138   adding changesets
   149   adding changesets
   139   adding manifests
   150   adding manifests
   140   adding file changes
   151   adding file changes
   141   added 1 changesets with 1 changes to 1 files
   152   added 1 changesets with 1 changes to 1 files