897 B
897 B
CryptoPro Linux CSP Service (experimental)
Minimal FastAPI wrapper around the Linux CryptoPro CSP binaries to prove installation and expose simple operations.
Build
docker build -t cryptopro-linux-csp -f ops/cryptopro/linux-csp-service/Dockerfile .
Run
docker run --rm -p 8080:8080 cryptopro-linux-csp
Endpoints:
GET /health— checkscsptestpresence.GET /license— runscsptest -license.POST /hashwith{ "data_b64": "<base64>" }— runscsptest -hash -hash_alg gost12_256.
Notes
- Uses the provided CryptoPro
.tgzbundles underopt/cryptopro/downloads. Ensure you have rights to these binaries; the image builds withCRYPTOPRO_ACCEPT_EULA=1. - Default install is minimal (no browser/plugin). Set
CRYPTOPRO_INCLUDE_PLUGIN=1if you need plugin packages. - This is not a production service; intended for validation only.