CryptoPro Linux CSP Service (.NET minimal API)
Minimal HTTP wrapper around the Linux CryptoPro CSP binaries to prove installation and hash operations.
Build
docker build -t cryptopro-linux-csp -f ops/cryptopro/linux-csp-service/Dockerfile .
CRYPTOPRO_ACCEPT_EULA defaults to 0 (build will fail); set to 1 only if you hold a valid CryptoPro license and accept the vendor EULA:
docker build -t cryptopro-linux-csp \
--build-arg CRYPTOPRO_ACCEPT_EULA=1 \
-f ops/cryptopro/linux-csp-service/Dockerfile .
Run
docker run --rm -p 18080:8080 --name cryptopro-linux-csp-test cryptopro-linux-csp
Endpoints:
GET /health— checkscsptestpresence.GET /license— runscsptest -keyset -info(reports errors if no keyset/token present).POST /hashwith{"data_b64":"<base64>"}— hashes usingcsptest -hash -alg GOST12_256.POST /keyset/initwith optional{"name":"<container>"}— creates an empty keyset (-keytype none) to silence missing-container warnings.
Notes:
- Uses the provided CryptoPro
.tgzbundles underopt/cryptopro/downloads. Do not setCRYPTOPRO_ACCEPT_EULA=1unless you are licensed to use these binaries. - Minimal, headless install; browser/plugin packages are not included.