moved crl-verify crl.pem to openvpn config templates
This commit is contained in:
parent
8ea80a616e
commit
45016b76e7
8 changed files with 7 additions and 9 deletions
|
@ -18,6 +18,7 @@ user nobody
|
|||
group nobody
|
||||
persist-key
|
||||
persist-tun
|
||||
crl-verify crl.pem
|
||||
status openvpn-status.log
|
||||
verb 1
|
||||
tls-server
|
||||
|
|
|
@ -5,6 +5,7 @@ resolv-retry infinite
|
|||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
crl-verify crl.pem
|
||||
$OPENVPN_NCP_DISABLE
|
||||
cipher $OPENVPN_CIPHER
|
||||
auth $OPENVPN_HASH
|
||||
|
|
|
@ -18,6 +18,7 @@ user nobody
|
|||
group nobody
|
||||
persist-key
|
||||
persist-tun
|
||||
crl-verify crl.pem
|
||||
status openvpn-status.log
|
||||
verb 1
|
||||
tls-server
|
||||
|
|
|
@ -5,6 +5,7 @@ resolv-retry infinite
|
|||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
crl-verify crl.pem
|
||||
$OPENVPN_NCP_DISABLE
|
||||
cipher $OPENVPN_CIPHER
|
||||
auth $OPENVPN_HASH
|
||||
|
|
|
@ -18,6 +18,7 @@ user nobody
|
|||
group nobody
|
||||
persist-key
|
||||
persist-tun
|
||||
crl-verify crl.pem
|
||||
status openvpn-status.log
|
||||
verb 1
|
||||
tls-server
|
||||
|
|
|
@ -5,6 +5,7 @@ resolv-retry infinite
|
|||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
crl-verify crl.pem
|
||||
$OPENVPN_NCP_DISABLE
|
||||
cipher $OPENVPN_CIPHER
|
||||
auth $OPENVPN_HASH
|
||||
|
|
|
@ -125,6 +125,7 @@ void ClientInfoLogic::onRevokeOpenVpnCertificateClicked()
|
|||
auto error = m_serverController->runScript(credentials, script);
|
||||
if (isErrorOccured(error)) {
|
||||
set_busyIndicatorIsRunning(false);
|
||||
emit uiLogic()->goToPage(Page::ServerSettings);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -136,14 +137,6 @@ void ClientInfoLogic::onRevokeOpenVpnCertificateClicked()
|
|||
return;
|
||||
}
|
||||
|
||||
error = m_serverController->uploadTextFileToContainer(container, credentials, "crl-verify crl.pem\n",
|
||||
protocols::openvpn::serverConfigPath,
|
||||
QSsh::SftpOverwriteMode::SftpAppendToExisting);
|
||||
if (isErrorOccured(error)) {
|
||||
set_busyIndicatorIsRunning(false);
|
||||
return;
|
||||
}
|
||||
|
||||
const QJsonObject &containerConfig = m_settings->containerConfig(uiLogic()->selectedServerIndex, container);
|
||||
error = m_serverController->startupContainerWorker(credentials, container, containerConfig);
|
||||
if (isErrorOccured(error)) {
|
||||
|
|
|
@ -12,7 +12,6 @@ cont -> cont: cd /opt/amnezia/openvpn
|
|||
cont -> cont: easyrsa revoke openvpnCertId
|
||||
cont -> cont: easyrsa gen-crl
|
||||
cont -> cont: cp pki/crl.pem crl.pem
|
||||
cont -> cont: add crl-verify crl.pem to server.conf
|
||||
cont -> ovpn: restart openvpn service
|
||||
note right
|
||||
In the OpenVpn config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue