diff --git a/README.md b/README.md index 9e2f39f..d7b876b 100644 --- a/README.md +++ b/README.md @@ -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 +``` + # Работа с контейнером через интерфейс командной строки ## Лицензия @@ -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' ``` @@ -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' @@ -379,7 +385,7 @@ 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' @@ -387,7 +393,7 @@ curl -X 'POST' \ Без пин-кодом: ```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' @@ -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 '' ``` @@ -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' @@ -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' @@ -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' \ @@ -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'