static strings for routers-supported -bV
[exim.git] / test / scripts / 1100-Basic-TLS / 1102
1 # TLS server: creds caching
2 #
3 mkdir -p DIR/tmp/certs
4 cp DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem            DIR/tmp/certs/servercert
5 cp DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.unlocked.key   DIR/tmp/certs/serverkey
6 #
7 #exim -d-all+tls+receive+timestamp -DSERVER=server -bd -oX PORT_D
8 exim -DSERVER=server -bd -oX PORT_D
9 ****
10 client-anytls 127.0.0.1 PORT_D
11 ??? 220
12 EHLO rhu.barb
13 ????250
14 STARTTLS
15 ??? 220
16 EHLO rhu.barb
17 ????250
18 MAIL FROM:<>
19 RCPT TO:test@example.com
20 ??? 250
21 ??? 250
22 QUIT
23 ??? 221
24 ****
25 sleep 1
26 # Now overwrite the cert
27 cp DIR/aux-fixed/exim-ca/example.net/server1.example.net/server1.example.net.pem            DIR/tmp/certs/servercert
28 cp DIR/aux-fixed/exim-ca/example.net/server1.example.net/server1.example.net.unlocked.key   DIR/tmp/certs/serverkey
29 # The watch mech waits 5 sec after the last trigger, so give that time to expire then send another message
30 sleep 7
31 client-anytls 127.0.0.1 PORT_D
32 ??? 220
33 EHLO rhu.barb
34 ????250
35 STARTTLS
36 ??? 220
37 EHLO rhu.barb
38 ????250
39 MAIL FROM:<>
40 RCPT TO:test@example.com
41 ??? 250
42 ??? 250
43 QUIT
44 ??? 221
45 ****
46 #
47 killdaemon
48 #
49 sudo rm -fr DIR/tmp
50 no_msglog_check