X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/1137f3a6938882cc81a1fcd7dc15530e8fae9e32..a47dd4d0a300c551e83e57064e1578d09e453ede:/test/scripts/4500-DKIM/4503 diff --git a/test/scripts/4500-DKIM/4503 b/test/scripts/4500-DKIM/4503 index 6efe3545a..2c501a4e6 100644 --- a/test/scripts/4500-DKIM/4503 +++ b/test/scripts/4500-DKIM/4503 @@ -1,37 +1,45 @@ -# DKIM signing +# DKIM verify, sha512 # -exim -bd -DSERVER=server -oX PORT_D +exim -DSERVER=server -bd -oX PORT_D **** # -# single header signed -exim -DOPT=From -odf a@test.ex -From: nobody@example.com -From: second@example.com - -content -**** +# This should pass, only Mail::DKIM::Signer does not handle rsa-sha512. +# - sha512, 1024b +# Mail original in aux-fixed/4500.msg1.txt +# Sig generated by: perl aux-fixed/dkim/sign.pl --algorithm=rsa-sha512 \ +# --method=simple/simple < aux-fixed/4500.msg1.txt # -# single header, oversigned -exim -DOPT=From:From -odf b@test.ex -From: nobody@example.com - -content -**** +# TODO - until we have that we can only test internal consistency, +# signing vs. verification. # -# default header set -exim -DHEADERS_MAXSIZE=y -odf c@test.ex +client 127.0.0.1 PORT_D +??? 220 +HELO xxx +??? 250 +MAIL FROM: +??? 250 +RCPT TO: +??? 250 +DATA +??? 354 +DKIM-Signature: v=1; a=rsa-sha512; q=dns/txt; c=relaxed/relaxed; d=test.ex; + s=sel; h=From:From; bh=6B2m0DINYQYGHTvmDYQAfAm/wCDFh+Oj57jE2G4jz4nAeJfmjTB6tz + me+A5nT6AQ4J3N47vffXLG1exv8bzFZw==; b=YFIC4khvqvXRd8I3r3YTdQqG/SbtDIAYTYVkIo3 + W7Qe+42eI+w1koPY+ocPtZeRBWWjGVbnZNtof7s5x0sRc6fSDZJAQu6RjnP2xEJWsivowXBMuu8id + PtqcDhP/3Q/0W85VMalfSC7eCgpnNxfn73ZjPuBZFCc1wMVh5nUmUvo=; From: nobody@example.com +Message-Id: +Sender: CALLER_NAME +Date: Tue, 2 Mar 1999 09:44:33 +0000 content -**** -# -# check that on signing we warn in debug mode about verify problems -exim -d-all+acl -DHEADERS_MAXSIZE=y -DSELECTOR=sel_bad -odf d@test.ex -From: nobody@example.com -content +. +??? 250 +QUIT +??? 221 **** # -millisleep 500 killdaemon +no_stdout_check no_msglog_check