diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2014-10-16 19:11:45 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2014-10-16 19:11:45 +0100 |
commit | a7fec7a71987d40dc09601ae33902d0a761887b9 (patch) | |
tree | 50670d515f852f9893c723c355ec80199c3bc20d /test/aux-fixed | |
parent | fe245072af3fdc4440da6cff246ac203a2759b09 (diff) |
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.
Diffstat (limited to 'test/aux-fixed')
3 files changed, 14 insertions, 0 deletions
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 |