From a7fec7a71987d40dc09601ae33902d0a761887b9 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 16 Oct 2014 19:11:45 +0100 Subject: Handle certificate dir under GnuTLS, if recent enough Add testcases for certificate directories The GnuTLS implementation has been tested on Fedora 21 (alpha), using GnuTLS 3.3.9. The testsuite case is here but with the script commented-out. When enabled, the log/mail/stdout/stderr files will be created fresh. --- .../example.com/server1.example.com/certdir/08c48a5f.0 | 1 + .../example.com/server1.example.com/certdir/61e813e6.0 | 1 + test/aux-fixed/exim-ca/genall | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 120000 test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/08c48a5f.0 create mode 120000 test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/61e813e6.0 (limited to 'test/aux-fixed/exim-ca') diff --git a/test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/08c48a5f.0 b/test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/08c48a5f.0 new file mode 120000 index 000000000..0bc47166d --- /dev/null +++ b/test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/08c48a5f.0 @@ -0,0 +1 @@ +../../CA/CA.pem \ No newline at end of file diff --git a/test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/61e813e6.0 b/test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/61e813e6.0 new file mode 120000 index 000000000..890dffc23 --- /dev/null +++ b/test/aux-fixed/exim-ca/example.com/server1.example.com/certdir/61e813e6.0 @@ -0,0 +1 @@ +../../CA/Signer.pem \ No newline at end of file diff --git a/test/aux-fixed/exim-ca/genall b/test/aux-fixed/exim-ca/genall index 0e3feb25e..64e5a85b4 100755 --- a/test/aux-fixed/exim-ca/genall +++ b/test/aux-fixed/exim-ca/genall @@ -112,6 +112,18 @@ do openssl crl -in $CADIR/crl.v2 -inform der -out $CADIR/crl.v2.pem done +# Finally, a single certificate-directory +cd example.com/server1.example.com +mkdir -f certdir +cd certdir +f=../../CA/CA.pem +h=`openssl x509 -hash -noout -in $f` +ln -s $f $h.0 +f=../../CA/Signer.pem +h=`openssl x509 -hash -noout -in $f` +ln -s $f $h.0 +cd ../.. + find example.* -type d -print0 | xargs -0 chmod 755 find example.* -type f -print0 | xargs -0 chmod 644 -- cgit v1.2.3