-
Put CryptoPRO CSP 5.0 deb package to
dist/linux-amd64_deb.tgz
path -
Build image
docker build -t registry.91.team/cryptopro/csp:latest .
docker run --rm -it \
-v "$(pwd)/keys:/var/opt/cprocsp/keys/root" \
-e "LICENSE_KEY=40406-A0000-0219M-Q778D-1Y222" \
registry.91.team/cryptopro/csp:latest bash
docker push registry.91.team/cryptopro/csp:latest
List containers:
csptestf -keys -enum -verifyc -fqcn
List certs:
certmgr -list
Sign data:
cryptcp \
-signf \
-cert \
-detached \
-nochain \
-thumbprint bc47e3bdb7b19b9112df674b49f4b51148209324 \
-pin 11111111 \
-dir ./ ./sign_test.txt
Export key from USB token to PFX file:
certmgr -export -pfx -dest 123.pfx
Import key from PFX file:
certmgr -install -pfx -file 123.pfx
csptestf -absorb -certs -autoprov
ls /var/opt/cprocsp/keys/root