New signer implementation in Go
Find a file
2022-08-02 11:15:23 +02:00
cmd/signer Fix typo (singer vs. signer) 2022-04-26 18:15:28 +02:00
docs Add architecture/design documentation 2022-08-02 11:15:23 +02:00
pkg Improve test coverage of package hsm 2022-05-01 12:36:57 +02:00
.gitattributes First DDD based signer implementation parts 2021-08-23 20:53:43 +02:00
.gitignore Improve configuration, implement setup mode 2022-04-19 16:48:32 +02:00
.golangci.yml Add test for pkg/hsm/context.go 2022-04-24 14:05:46 +02:00
.goreleaser.yaml Add goreleaser configuration 2022-04-16 14:43:05 +02:00
go.mod Finish openssl repository implementation and tests 2022-04-21 20:01:35 +02:00
go.sum Implement configuration and CA hierarchy setup 2022-04-16 22:24:32 +02:00
LICENSE Configure and apply golangci-lint 2022-04-24 09:25:04 +02:00
README.md Update README to reflect setup 2022-04-20 09:06:22 +02:00

Running with softhsm2

Setup HSM keys and certificates

sudo apt install softhsm2
umask 077
mkdir -p ~/.config/softhsm2/tokens
echo "directories.tokendir = $HOME/.config/softhsm2/tokens/" > ~/.config/softhsm2/softhsm2.conf
cp docs/config.sample.yaml config.yaml
# modify config.yaml to fit your needs
softhsm2-util --init-token --free --label localhsm --so-pin 47110815 --pin 123456
# initialize the keys
export PKCS11_PIN_LOCALHSM=123456
go run ./cmd/signer -setup

Run the signer

export PKCS11_PIN_LOCALHSM=123456
go run ./cmd/signer