equal
deleted
inserted
replaced
5 $ CERTSDIR="$TESTDIR/sslcerts" |
5 $ CERTSDIR="$TESTDIR/sslcerts" |
6 $ cat "$CERTSDIR/priv.pem" "$CERTSDIR/pub.pem" >> server.pem |
6 $ cat "$CERTSDIR/priv.pem" "$CERTSDIR/pub.pem" >> server.pem |
7 |
7 |
8 $ "$PYTHON" "$TESTDIR/dummysmtpd.py" -p $HGPORT --pid-file a.pid --logfile log -d \ |
8 $ "$PYTHON" "$TESTDIR/dummysmtpd.py" -p $HGPORT --pid-file a.pid --logfile log -d \ |
9 > --tls smtps --certificate `pwd`/server.pem |
9 > --tls smtps --certificate `pwd`/server.pem |
10 listening at localhost:$HGPORT (?) |
|
11 $ cat a.pid >> $DAEMON_PIDS |
10 $ cat a.pid >> $DAEMON_PIDS |
12 |
11 |
13 Set up repository: |
12 Set up repository: |
14 |
13 |
15 $ hg init t |
14 $ hg init t |
45 |
44 |
46 |
45 |
47 (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) |
46 (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) |
48 (?i)abort: .*?certificate.verify.failed.* (re) |
47 (?i)abort: .*?certificate.verify.failed.* (re) |
49 [255] |
48 [255] |
|
49 |
|
50 $ cat ../log |
|
51 * ssl error: * (glob) |
|
52 $ : > ../log |
|
53 |
50 #endif |
54 #endif |
51 |
55 |
52 #if defaultcacertsloaded |
56 #if defaultcacertsloaded |
53 $ try |
57 $ try |
54 this patch series consists of 1 patches. |
58 this patch series consists of 1 patches. |
55 |
59 |
56 |
60 |
57 (the full certificate chain may not be available locally; see "hg help debugssl") (windows !) |
61 (the full certificate chain may not be available locally; see "hg help debugssl") (windows !) |
58 (?i)abort: .*?certificate.verify.failed.* (re) |
62 (?i)abort: .*?certificate.verify.failed.* (re) |
59 [255] |
63 [255] |
|
64 |
|
65 $ cat ../log |
|
66 * ssl error: * (glob) |
|
67 $ : > ../log |
60 |
68 |
61 #endif |
69 #endif |
62 |
70 |
63 $ DISABLECACERTS="--config devel.disableloaddefaultcerts=true" |
71 $ DISABLECACERTS="--config devel.disableloaddefaultcerts=true" |
64 |
72 |
74 abort: unable to verify security of localhost (no loaded CA certificates); refusing to connect |
82 abort: unable to verify security of localhost (no loaded CA certificates); refusing to connect |
75 (see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error or set hostsecurity.localhost:fingerprints=sha256:20:de:b3:ad:b4:cd:a5:42:f0:74:41:1c:a2:70:1e:da:6e:c0:5c:16:9e:e7:22:0f:f1:b7:e5:6e:e4:92:af:7e to trust this server) |
83 (see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this error or set hostsecurity.localhost:fingerprints=sha256:20:de:b3:ad:b4:cd:a5:42:f0:74:41:1c:a2:70:1e:da:6e:c0:5c:16:9e:e7:22:0f:f1:b7:e5:6e:e4:92:af:7e to trust this server) |
76 [150] |
84 [150] |
77 |
85 |
78 $ cat ../log |
86 $ cat ../log |
79 * ssl error: * (glob) |
87 connection from * (glob) |
|
88 no hello: b'' |
80 $ : > ../log |
89 $ : > ../log |
81 |
90 |
82 With global certificates: |
91 With global certificates: |
83 |
92 |
84 $ try --debug --config web.cacerts="$CERTSDIR/pub.pem" |
93 $ try --debug --config web.cacerts="$CERTSDIR/pub.pem" |
89 sending mail: smtp host localhost, port * (glob) |
98 sending mail: smtp host localhost, port * (glob) |
90 (verifying remote certificate) |
99 (verifying remote certificate) |
91 sending [PATCH] a ... |
100 sending [PATCH] a ... |
92 |
101 |
93 $ cat ../log |
102 $ cat ../log |
|
103 connection from * (glob) |
94 * from=quux to=foo, bar (glob) |
104 * from=quux to=foo, bar (glob) |
95 MIME-Version: 1.0 |
105 MIME-Version: 1.0 |
96 Content-Type: text/plain; charset="us-ascii" |
106 Content-Type: text/plain; charset="us-ascii" |
97 Content-Transfer-Encoding: 7bit |
107 Content-Transfer-Encoding: 7bit |
98 Subject: [PATCH] a |
108 Subject: [PATCH] a |