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

. ./environment.sh

set -x

openssl smime -engine pkcs11 -sign -text -keyform ENGINE			\
	-inkey label_natasha -signer natasha.cer				\
	-from "Natasha Fatale <natasha@moo.pv>"					\
	-to   "Boris Badenov <boris@moo.pv>"					\
	-subject "Fiendish plot"						\
	-in message.txt -out message.smime

openssl smime -verify -in message.smime -CAfile leader.cer -out /dev/null