From 644841e4c869e560c6572380e1582c6cf4f28b85 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Apr 11 2011 15:58:01 +0000 Subject: - go ahead and verify overwrite with OpenSSL, too --- diff --git a/tests/007-certsave/run.sh b/tests/007-certsave/run.sh index 177dd95..44a586d 100755 --- a/tests/007-certsave/run.sh +++ b/tests/007-certsave/run.sh @@ -63,7 +63,14 @@ cert=$cert EOF $toolsdir/certsave entry.nss certutil -d ${scheme:+${scheme}:}$tmpdir -L -n cert -a > cert.nss -# Save it to a PEM file. +# Save the wrong certificate to the PEM file. +cat > entry.openssl << EOF +cert_storage_type=FILE +cert_storage_location=$tmpdir/cert.openssl +cert=$wrongcert +EOF +$toolsdir/certsave entry.nss +# Save the right certificate to the PEM file. cat > entry.openssl << EOF cert_storage_type=FILE cert_storage_location=$tmpdir/cert.openssl