diff options
author | Magnus Ahltorp <map@kth.se> | 2015-04-10 14:30:06 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-04-10 15:44:26 +0200 |
commit | c092b632d444b5c15aeac30c043c45b40775af60 (patch) | |
tree | b3d26758d2dc2a0489ba58cde67c550dd4313717 /Makefile | |
parent | f54aecd113d5ee6834672838ed83a732fd383786 (diff) |
Testing environment for hsm signing
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,7 @@ PREFIX=. INSTDIR=$(PREFIX)/catlfish +SOFTHSM=/usr/local/bin/softhsm2-util build all: ./make.erl @@ -23,6 +24,7 @@ tests-prepare: make tests-createcert mkdir $(INSTDIR)/tests/keys (cd $(INSTDIR)/tests/keys ; ../../../tools/create-key.sh logkey) + openssl pkcs8 -topk8 -nocrypt -in $(INSTDIR)/tests/keys/logkey-private.pem -out $(INSTDIR)/tests/keys/logkey-private.pkcs8 mkdir $(INSTDIR)/tests/mergedb mkdir $(INSTDIR)/tests/mergedb/chains touch $(INSTDIR)/tests/mergedb/logorder @@ -44,6 +46,8 @@ tests-prepare: done (cd $(INSTDIR)/tests/privatekeys ; ../../../tools/create-key.sh merge-1) mv $(INSTDIR)/tests/privatekeys/merge-1.pem $(INSTDIR)/tests/publickeys/ + -test -x $(SOFTHSM) && $(SOFTHSM) --init-token --slot=0 --label=mylabel --so-pin=ffff --pin=ffff + -test -x $(SOFTHSM) && $(SOFTHSM) --import $(INSTDIR)/tests/keys/logkey-private.pkcs8 --slot 0 --label mylabel --pin ffff --id 00 tests-start: @for node in $(NODES); do \ |