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