testdata/10-unbound-anchor.tdir/signit
raw| 1 | # PKCS7 sign it |
| 2 | #infile=127.0.0.1/no_more_keys.xml |
| 3 | #outfile=127.0.0.1/no_more_keys.p7s |
| 4 | infile=127.0.0.1/root.xml |
| 5 | outfile=127.0.0.1/root.p7s |
| 6 | set -v |
| 7 | |
| 8 | openssl smime -sign -in $infile -out $outfile -inkey test_cert.key -signer test_cert.pem -outform DER -binary || echo "could not sign" |
| 9 | openssl smime -verify -content $infile -in $outfile -inform DER -CAfile test_cert.pem || echo "could not verify" |
| 10 | openssl pkcs7 -print_certs -inform der -in $outfile -text |