New signer implementation in Go
Find a file
2022-04-16 12:21:15 +02:00
cmd/signer Add PKCS#11 test to generate root certificate 2022-04-13 08:32:16 +02:00
openpgp/signing First DDD based signer implementation parts 2021-08-23 20:53:43 +02:00
x509 Implement signing test and domain logic 2021-08-24 22:02:14 +02:00
.gitattributes First DDD based signer implementation parts 2021-08-23 20:53:43 +02:00
.gitignore Add PKCS#11 test to generate root certificate 2022-04-13 08:32:16 +02:00
go.mod Update to go 1.18 2022-04-16 12:21:15 +02:00
go.sum Update to go 1.18 2022-04-16 12:21:15 +02:00
README.md Add PKCS#11 test to generate root certificate 2022-04-13 08:32:16 +02:00

Testing with softhsm2

sudo apt install softhsm2 gnutls-bin
umask 077
mkdir -p ~/.config/softhsm2/tokens
echo "directories.tokendir = $HOME/.config/softhsm2/tokens/" > ~/.config/softhsm2/softhsm2.conf
softhsm2-util --init-token --free --label localhsm --so-pin 47110815 --pin 123456
export TOKEN_URL=$(p11tool --list-token-urls | grep localhsm | head -1)
p11tool --login --outfile=rootkey2022.pub --label=rootkey2022 --generate-privkey=ECDSA --curve=secp521r1 $TOKEN_URL
go test -v ./cmd/signer/
openssl x509 -in /tmp/test.pem -noout -text