Use P-256 for EC tests
Fedora/RedHat OpenSSL supports only P-256, P-384 and P-521. The new mkcert.sh script can create updated certs when these expire on Jan 17th 2038.
This commit is contained in:

committed by
Viktor Dukhovni

parent
6bfcd13506
commit
46e0bd3c68
@@ -53,15 +53,15 @@ if ${hxtool} info | grep 'ecdsa: hcrypto null' > /dev/null ; then
|
||||
else
|
||||
echo "create signed data (ec)"
|
||||
${hxtool} cms-create-sd \
|
||||
--certificate=FILE:$srcdir/data/secp160r2TestClient.pem \
|
||||
"$srcdir/test_chain.in" \
|
||||
sd.data > /dev/null || exit 1
|
||||
--certificate=FILE:$srcdir/data/secp256r2TestClient.pem \
|
||||
"$srcdir/test_chain.in" \
|
||||
sd.data > /dev/null || exit 1
|
||||
|
||||
echo "verify signed data (ec)"
|
||||
${hxtool} cms-verify-sd \
|
||||
--missing-revoke \
|
||||
--anchors=FILE:$srcdir/data/secp160r1TestCA.cert.pem \
|
||||
sd.data sd.data.out > /dev/null || exit 1
|
||||
--missing-revoke \
|
||||
--anchors=FILE:$srcdir/data/secp256r1TestCA.cert.pem \
|
||||
sd.data sd.data.out > /dev/null || exit 1
|
||||
cmp "$srcdir/test_chain.in" sd.data.out || exit 1
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user