26 lines
897 B
Markdown
26 lines
897 B
Markdown
# CryptoPro Linux CSP Service (experimental)
|
|
|
|
Minimal FastAPI wrapper around the Linux CryptoPro CSP binaries to prove installation and expose simple operations.
|
|
|
|
## Build
|
|
|
|
```bash
|
|
docker build -t cryptopro-linux-csp -f ops/cryptopro/linux-csp-service/Dockerfile .
|
|
```
|
|
|
|
## Run
|
|
|
|
```bash
|
|
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.
|