X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/97277c1f835e749bf06aea2e16922fc234470034..6b3d0ff488b18ebe6b54b70026431ff8e14ba6db:/test/scripts/5670-OCSP-GnuTLS-1.3/5670 diff --git a/test/scripts/5670-OCSP-GnuTLS-1.3/5670 b/test/scripts/5670-OCSP-GnuTLS-1.3/5670 new file mode 100644 index 000000000..1df75fbf9 --- /dev/null +++ b/test/scripts/5670-OCSP-GnuTLS-1.3/5670 @@ -0,0 +1,59 @@ +# OCSP stapling, server, multiple chain-element OCSP +# +# +# +mkdir -p DIR/tmp/ocsp +sudo chown -R EXIMUSER:EXIMGROUP tmp +sudo chmod -R a+rwx DIR/tmp/ocsp +perl +chdir 'aux-fixed/exim-ca/example.com'; +system 'cat server1.example.com/server1.example.com.ocsp.signernocert.good.resp.pem CA/Signer.ocsp.signernocert.revoked.resp.pem > DIR/tmp/ocsp/double_r.ocsp.pem'; +**** +# +# +exim -z '1: TLS1.2 Server sends good leaf-staple on request, to client requiring RSA auth' +**** +# +sudo exim -bd -oX PORT_D -DSERVER=server -DLIMIT=TLS1.2 +**** +# +exim -odf -DOPT=rsa -DLIMIT=TLS1.2 rsa.auth@test.ex +Subject: test + +. +**** +killdaemon +# +# +exim -z '2: TLS1.3 Server sends good 3-element staple on request, to client requiring RSA auth' +**** +# +# Prefix with sudo to get SSLKEYLOGFILE to work. Only works on the server. +exim -bd -oX PORT_D -DSERVER=server -DLIMIT=TLS1.3 +**** +exim -odf -DOPT=rsa rsa.auth@test.ex +Subject: test + +. +**** +killdaemon +# +# +# +exim -z '3: TLS1.3 Server sends bad nonleaf staple, client detects it' +**** +# +EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server -DLIMIT=TLS1.3 -DCONTROL=bad +**** +exim -odf -DOPT=rsa rsa.auth@test.ex +Subject: test + +. +**** +killdaemon +# +# +# +# +sudo rm -fr tmp/ +no_msglog_check