aboutsummaryrefslogtreecommitdiff
path: root/delete-keys.sh
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-08-21 12:17:19 -0400
committerRob Austein <sra@hactrn.net>2016-08-21 12:17:19 -0400
commit3185360834dc9992c141c84517bdecd3a87312a1 (patch)
tree1946600f120465537c8234ad5b0c572e4af37f86 /delete-keys.sh
Scripts demonstrating the OpenSSL engine API with Cryptech Alpha HSM.
Diffstat (limited to 'delete-keys.sh')
-rwxr-xr-xdelete-keys.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/delete-keys.sh b/delete-keys.sh
new file mode 100755
index 0000000..f615bd7
--- /dev/null
+++ b/delete-keys.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -
+
+. ./environment.sh
+
+for label in leader boris natasha
+do
+ for type in privkey pubkey
+ do
+ pkcs11-tool --module ${PKCS11_MODULE} --login --pin ${PKCS11_PIN} --delete-object --label "$label" --type "$type"
+ done
+done