equal
deleted
inserted
replaced
45 $ cd .. |
45 $ cd .. |
46 |
46 |
47 Our test cert is not signed by a trusted CA. It should fail to verify if |
47 Our test cert is not signed by a trusted CA. It should fail to verify if |
48 we are able to load CA certs. |
48 we are able to load CA certs. |
49 |
49 |
50 #if defaultcacerts |
50 #if sslcontext defaultcacerts no-defaultcacertsloaded |
51 $ hg clone https://localhost:$HGPORT/ copy-pull |
51 $ hg clone https://localhost:$HGPORT/ copy-pull |
52 (an attempt was made to load CA certificates but none were loaded; see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error) |
52 (an attempt was made to load CA certificates but none were loaded; see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error) |
53 abort: error: *certificate verify failed* (glob) |
53 abort: error: *certificate verify failed* (glob) |
54 [255] |
54 [255] |
55 #else |
55 #endif |
|
56 |
|
57 #if no-sslcontext defaultcacerts |
|
58 $ hg clone https://localhost:$HGPORT/ copy-pull |
|
59 abort: error: *certificate verify failed* (glob) |
|
60 [255] |
|
61 #endif |
|
62 |
|
63 #if defaultcacertsloaded |
|
64 $ hg clone https://localhost:$HGPORT/ copy-pull |
|
65 abort: error: *certificate verify failed* (glob) |
|
66 [255] |
|
67 #endif |
|
68 |
|
69 #if no-defaultcacerts |
56 $ hg clone https://localhost:$HGPORT/ copy-pull |
70 $ hg clone https://localhost:$HGPORT/ copy-pull |
57 abort: localhost certificate error: no certificate received |
71 abort: localhost certificate error: no certificate received |
58 (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 config setting or use --insecure to connect insecurely) |
72 (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 config setting or use --insecure to connect insecurely) |
59 [255] |
73 [255] |
60 #endif |
74 #endif |