diff options
author | Rob Austein <sra@hactrn.net> | 2016-08-21 12:17:19 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-08-21 12:17:19 -0400 |
commit | 3185360834dc9992c141c84517bdecd3a87312a1 (patch) | |
tree | 1946600f120465537c8234ad5b0c572e4af37f86 /basic-signature.sh |
Scripts demonstrating the OpenSSL engine API with Cryptech Alpha HSM.
Diffstat (limited to 'basic-signature.sh')
-rwxr-xr-x | basic-signature.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/basic-signature.sh b/basic-signature.sh new file mode 100755 index 0000000..16b663a --- /dev/null +++ b/basic-signature.sh @@ -0,0 +1,8 @@ +#!/bin/sh - + +. ./environment.sh + +set -x + +openssl dgst -keyform ENGINE -sha256 -engine pkcs11 -sign label_boris -out message.sig message.txt +openssl dgst -keyform ENGINE -sha256 -engine pkcs11 -verify label_boris -signature message.sig message.txt |