Skip to content

Commit

Permalink
Merge pull request #73 from MamaevPro/patch-3
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
MiloslavskiySergey authored Feb 14, 2024
2 parents c29314b + a06aad4 commit b38bb7e
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ docker build --tag cryptopro_5 .
docker run -it --rm -p 8095:80 --name cryptopro cryptopro_5
```

Для сохранения сертификатов и лицензии дополнительно монтируем директории

```
docker run -it -p 8095:80 -v ./cryptopro-data:/var/opt/cprocsp/ -v ./cryptopro-etc:/etc/opt/cprocsp/ --name cryptopro cryptopro_5
```

# Работа с контейнером через интерфейс командной строки<a name="cli"></a>

## Лицензия
Expand Down Expand Up @@ -293,7 +299,7 @@ curl -sS -X POST --data-binary "bindata" http://localhost:8095/healthchecks

```shell
curl -X 'GET' \
'http://localhost:8001/certificate' \
'http://localhost:8085/certificate' \
-H 'accept: application/json'
```

Expand Down Expand Up @@ -356,7 +362,7 @@ curl -X 'GET' \

```shell
curl -X 'POST' \
'http://localhost:8001/certificate/root' \
'http://localhost:8085/certificate/root' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@filename.p7b;type=application/x-pkcs7-certificates'
Expand All @@ -379,15 +385,15 @@ curl -X 'POST' \
С пин-кодом:
```shell
curl -X 'POST' \
'http://localhost:8001/certificate/private_key?pin=1234' \
'http://localhost:8085/certificate/private_key?pin=1234' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@bundle-pin.zip;type=application/zip'
```
Без пин-кодом:
```shell
curl -X 'POST' \
'http://localhost:8001/certificate/private_key' \
'http://localhost:8085/certificate/private_key' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@bundle-no-pin.zip;type=application/zip'
Expand All @@ -398,7 +404,7 @@ curl -X 'POST' \

```shell
curl -X 'POST' \
'http://localhost:8001/license?serial_number=12345-12345-12345-12345-12345' \
'http://localhost:8085/license?serial_number=12345-12345-12345-12345-12345' \
-H 'accept: application/json' \
-d ''
```
Expand All @@ -410,7 +416,7 @@ curl -X 'POST' \
С пин-кодом:
```shell
curl -X 'POST' \
'http://localhost:8001/signer?pin=123' \
'http://localhost:8085/signer?pin=123' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@filename.pdf;type=application/pdf'
Expand All @@ -419,7 +425,7 @@ curl -X 'POST' \
Без пин-кода:
```shell
curl -X 'POST' \
'http://localhost:8001/signer' \
'http://localhost:8085/signer' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@filename.pdf;type=application/pdf'
Expand All @@ -433,7 +439,7 @@ curl -X 'POST' \

```shell
curl -X 'POST' \
'http://localhost:8001/verify' \
'http://localhost:8085/verify' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'original_file=@filename1.pdf;type=application/pdf' \
Expand All @@ -449,7 +455,7 @@ curl -X 'POST' \

```shell
curl -X 'POST' \
'http://localhost:8001/unsigner' \
'http://localhost:8085/unsigner' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'file=@filename.sig;type=application/sig'
Expand Down

0 comments on commit b38bb7e

Please sign in to comment.