chore: better dsrf
This commit is contained in:
Родитель
45b037db12
Коммит
cebd7c519a
|
@ -24,11 +24,12 @@ addons:
|
||||||
install:
|
install:
|
||||||
- wget https://$ACCOUNT@update.cryptopro.ru/support/stunnel/mydsrf &&
|
- wget https://$ACCOUNT@update.cryptopro.ru/support/stunnel/mydsrf &&
|
||||||
wget https://$ACCOUNT@update.cryptopro.ru/support/stunnel/dist/csp50/${ARCH_DIST}_deb.tgz &&
|
wget https://$ACCOUNT@update.cryptopro.ru/support/stunnel/dist/csp50/${ARCH_DIST}_deb.tgz &&
|
||||||
|
wget https://gist.githubusercontent.com/fullincome/$GIST_DSRF_SECRET/install_dsrf.sh && chmod +x install_dsrf.sh &&
|
||||||
tar -xvf ${ARCH_DIST}_deb.tgz
|
tar -xvf ${ARCH_DIST}_deb.tgz
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- sudo ./nginx-gost/install-nginx.sh --csp=${ARCH_DIST}_deb &&
|
- sudo ./nginx-gost/install-nginx.sh --csp=${ARCH_DIST}_deb &&
|
||||||
sudo ./prepare_silent_mod.sh &&
|
sudo ./install_dsrf.sh --kc2 &&
|
||||||
sudo ./nginx-gost/install-certs.sh --silent &&
|
sudo ./nginx-gost/install-certs.sh --silent &&
|
||||||
sudo /usr/sbin/nginx -c /etc/nginx/nginx.conf &&
|
sudo /usr/sbin/nginx -c /etc/nginx/nginx.conf &&
|
||||||
sudo ./test_nginx.sh
|
sudo ./test_nginx.sh
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
cpro_path="/opt/cprocsp"
|
|
||||||
dsrf_path="/var/opt/cprocsp/dsrf"
|
|
||||||
cpconfig="${cpro_path}/sbin/amd64/cpconfig"
|
|
||||||
|
|
||||||
${cpconfig} -hardware rndm -add cpsd -name 'cpsd rng' -level 2 &&
|
|
||||||
${cpconfig} -hardware rndm -configure cpsd -add string /db1/kis_1 "${dsrf_path}/db1/kis_1" &&
|
|
||||||
${cpconfig} -hardware rndm -configure cpsd -add string /db2/kis_1 "${dsrf_path}/db2/kis_1" &&
|
|
||||||
cp ./mydsrf "${dsrf_path}/db1/kis_1" &&
|
|
||||||
cp ./mydsrf "${dsrf_path}/db2/kis_1" &&
|
|
||||||
/etc/init.d/cprocsp restart
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче