DKIM: fix crash in signing. Bug 3116
[exim.git] / test / scripts / 4520-TLS-DKIM / 4524
1 # DKIM verify, sha512 (with extraneous DNS record)
2 #
3 exim -DSERVER=server -bd -oX PORT_D
4 ****
5 #
6 # This should pass, only Mail::DKIM::Signer does not handle rsa-sha512.
7 #  - sha512, 1024b
8 # Mail original in aux-fixed/4500.msg1.txt
9 # Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha512 \
10 #                       --method=simple/simple < aux-fixed/4500.msg1.txt
11 #
12 # TODO - until we have that we can only test internal consistency,
13 # signing vs. verification.
14 #
15 client-anytls 127.0.0.1 PORT_D
16 ??? 220
17 EHLO test
18 ??? 250-myhost
19 ??? 250-SIZE
20 ??? 250-LIMITS
21 ??? 250-8BITMIME
22 ??? 250-PIPELINING
23 ??? 250-STARTTLS
24 ??? 250 HELP
25 STARTTLS
26 ??? 220
27 HELO xxx
28 ??? 250
29 MAIL FROM:<CALLER@bloggs.com>
30 ??? 250
31 RCPT TO:<a@test.ex>
32 ??? 250
33 DATA
34 ??? 354
35 DKIM-Signature: v=1; a=rsa-sha512; q=dns/txt; c=relaxed/relaxed; d=test.ex;
36         s=sel; h=From:From; bh=6B2m0DINYQYGHTvmDYQAfAm/wCDFh+Oj57jE2G4jz4nAeJfmjTB6tz
37         me+A5nT6AQ4J3N47vffXLG1exv8bzFZw==; b=YFIC4khvqvXRd8I3r3YTdQqG/SbtDIAYTYVkIo3
38         W7Qe+42eI+w1koPY+ocPtZeRBWWjGVbnZNtof7s5x0sRc6fSDZJAQu6RjnP2xEJWsivowXBMuu8id
39         PtqcDhP/3Q/0W85VMalfSC7eCgpnNxfn73ZjPuBZFCc1wMVh5nUmUvo=;
40 From: nobody@example.com
41 Message-Id: <E10HmaX-0005vi-00@myhost.test.ex>
42 Sender: CALLER_NAME <CALLER@myhost.test.ex>
43 Date: Tue, 2 Mar 1999 09:44:33 +0000
44
45 content
46
47 .
48 ??? 250
49 QUIT
50 ??? 221
51 ****
52 #
53 killdaemon
54 no_stdout_check
55 no_msglog_check