tests/test-https.t
changeset 42350 e0ac310bd033
parent 41985 b1bc6e5f5249
child 44879 ab5348bbc55e
equal deleted inserted replaced
42349:ffab9eed3921 42350:e0ac310bd033
   486 
   486 
   487   $ P="$CERTSDIR" hg id https://localhost:$HGPORT/
   487   $ P="$CERTSDIR" hg id https://localhost:$HGPORT/
   488   (could not negotiate a common security protocol (tls1.1+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   488   (could not negotiate a common security protocol (tls1.1+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   489   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   489   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   490   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   490   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   491   abort: error: *unsupported protocol* (glob)
   491   abort: error: .*(unsupported protocol|wrong ssl version).* (re)
   492   [255]
   492   [255]
   493 
   493 
   494   $ P="$CERTSDIR" hg --config hostsecurity.minimumprotocol=tls1.1 id https://localhost:$HGPORT/
   494   $ P="$CERTSDIR" hg --config hostsecurity.minimumprotocol=tls1.1 id https://localhost:$HGPORT/
   495   (could not negotiate a common security protocol (tls1.1+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   495   (could not negotiate a common security protocol (tls1.1+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   496   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   496   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   497   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   497   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   498   abort: error: *unsupported protocol* (glob)
   498   abort: error: .*(unsupported protocol|wrong ssl version).* (re)
   499   [255]
   499   [255]
   500   $ P="$CERTSDIR" hg --config hostsecurity.minimumprotocol=tls1.2 id https://localhost:$HGPORT/
   500   $ P="$CERTSDIR" hg --config hostsecurity.minimumprotocol=tls1.2 id https://localhost:$HGPORT/
   501   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   501   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   502   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   502   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   503   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   503   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   504   abort: error: *unsupported protocol* (glob)
   504   abort: error: .*(unsupported protocol|wrong ssl version).* (re)
   505   [255]
   505   [255]
   506   $ P="$CERTSDIR" hg --config hostsecurity.minimumprotocol=tls1.2 id https://localhost:$HGPORT1/
   506   $ P="$CERTSDIR" hg --config hostsecurity.minimumprotocol=tls1.2 id https://localhost:$HGPORT1/
   507   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   507   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   508   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   508   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   509   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   509   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   510   abort: error: *unsupported protocol* (glob)
   510   abort: error: .*(unsupported protocol|wrong ssl version).* (re)
   511   [255]
   511   [255]
   512 
   512 
   513 --insecure will allow TLS 1.0 connections and override configs
   513 --insecure will allow TLS 1.0 connections and override configs
   514 
   514 
   515   $ hg --config hostsecurity.minimumprotocol=tls1.2 id --insecure https://localhost:$HGPORT1/
   515   $ hg --config hostsecurity.minimumprotocol=tls1.2 id --insecure https://localhost:$HGPORT1/
   528   $ P="$CERTSDIR" hg id https://localhost:$HGPORT/ \
   528   $ P="$CERTSDIR" hg id https://localhost:$HGPORT/ \
   529   > --config hostsecurity.localhost:minimumprotocol=tls1.2
   529   > --config hostsecurity.localhost:minimumprotocol=tls1.2
   530   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   530   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   531   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   531   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   532   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   532   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   533   abort: error: *unsupported protocol* (glob)
   533   abort: error: .*(unsupported protocol|wrong ssl version).* (re)
   534   [255]
   534   [255]
   535 
   535 
   536 .hg/hgrc file [hostsecurity] settings are applied to remote ui instances (issue5305)
   536 .hg/hgrc file [hostsecurity] settings are applied to remote ui instances (issue5305)
   537 
   537 
   538   $ cat >> copy-pull/.hg/hgrc << EOF
   538   $ cat >> copy-pull/.hg/hgrc << EOF
   541   > EOF
   541   > EOF
   542   $ P="$CERTSDIR" hg -R copy-pull id https://localhost:$HGPORT/
   542   $ P="$CERTSDIR" hg -R copy-pull id https://localhost:$HGPORT/
   543   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   543   (could not negotiate a common security protocol (tls1.2+) with localhost; the likely cause is Mercurial is configured to be more secure than the server can support)
   544   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   544   (consider contacting the operator of this server and ask them to support modern TLS protocol versions; or, set hostsecurity.localhost:minimumprotocol=tls1.0 to allow use of legacy, less secure protocols when communicating with this server)
   545   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   545   (see https://mercurial-scm.org/wiki/SecureConnections for more info)
   546   abort: error: *unsupported protocol* (glob)
   546   abort: error: .*(unsupported protocol|wrong ssl version).* (re)
   547   [255]
   547   [255]
   548 
   548 
   549   $ killdaemons.py hg0.pid
   549   $ killdaemons.py hg0.pid
   550   $ killdaemons.py hg1.pid
   550   $ killdaemons.py hg1.pid
   551   $ killdaemons.py hg2.pid
   551   $ killdaemons.py hg2.pid