aboutsummaryrefslogtreecommitdiff
path: root/basic-signature.sh
blob: 48b1b9340f47ff1a7bceb8668c9c656968a193a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -

. ./environment.sh

set -x

openssl dgst -sha256 -keyform ENGINE -engine pkcs11 -sign label_boris -out message.sig message.txt

openssl verify -CAfile leader.cer boris.cer

openssl x509 -noout -in boris.cer -pubkey |
openssl dgst -sha256 -verify /dev/stdin -signature message.sig message.txt