Files
git.stella-ops.org/ops/cryptopro/linux-csp-service/README.md
StellaOps Bot bc0762e97d up
2025-12-09 00:20:52 +02:00

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 — checks csptest presence.
  • GET /license — runs csptest -license.
  • POST /hash with { "data_b64": "<base64>" } — runs csptest -hash -hash_alg gost12_256.

Notes

  • Uses the provided CryptoPro .tgz bundles under opt/cryptopro/downloads. Ensure you have rights to these binaries; the image builds with CRYPTOPRO_ACCEPT_EULA=1.
  • Default install is minimal (no browser/plugin). Set CRYPTOPRO_INCLUDE_PLUGIN=1 if you need plugin packages.
  • This is not a production service; intended for validation only.