From c5881d3399821ba8fb4a27be97a667e7840b0d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 25 Jun 2007 18:45:44 +0000 Subject: [PATCH] Test PEM and DER FILE writing functionallity. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21315 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/test_cert.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/hx509/test_cert.in b/lib/hx509/test_cert.in index 7b42bec2d..ed04bfac3 100644 --- a/lib/hx509/test_cert.in +++ b/lib/hx509/test_cert.in @@ -56,4 +56,14 @@ done echo "print NULL" ${hxtool} print --content NULL: > /dev/null || exit 1 +echo "copy dance" +${hxtool} certificate-copy \ + FILE:${srcdir}/data/test.crt PEM-FILE:cert-pem.tmp || exit 1 + +${hxtool} certificate-copy PEM-FILE:cert-pem.tmp DER-FILE:cert-der.tmp || exit 1 +${hxtool} certificate-copy DER-FILE:cert-der.tmp PEM-FILE:cert-pem2.tmp || exit 1 + +cmp cert-pem.tmp cert-pem2.tmp || exit 1 + + exit 0