Skip to content

Commit 45016b7

Browse files
committed
moved crl-verify crl.pem to openvpn config templates
1 parent 8ea80a6 commit 45016b7

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

client/server_scripts/openvpn/configure_container.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ user nobody
1818
group nobody
1919
persist-key
2020
persist-tun
21+
crl-verify crl.pem
2122
status openvpn-status.log
2223
verb 1
2324
tls-server

client/server_scripts/openvpn/template.ovpn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resolv-retry infinite
55
nobind
66
persist-key
77
persist-tun
8+
crl-verify crl.pem
89
$OPENVPN_NCP_DISABLE
910
cipher $OPENVPN_CIPHER
1011
auth $OPENVPN_HASH

client/server_scripts/openvpn_cloak/configure_container.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ user nobody
1818
group nobody
1919
persist-key
2020
persist-tun
21+
crl-verify crl.pem
2122
status openvpn-status.log
2223
verb 1
2324
tls-server

client/server_scripts/openvpn_cloak/template.ovpn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resolv-retry infinite
55
nobind
66
persist-key
77
persist-tun
8+
crl-verify crl.pem
89
$OPENVPN_NCP_DISABLE
910
cipher $OPENVPN_CIPHER
1011
auth $OPENVPN_HASH

client/server_scripts/openvpn_shadowsocks/configure_container.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ user nobody
1818
group nobody
1919
persist-key
2020
persist-tun
21+
crl-verify crl.pem
2122
status openvpn-status.log
2223
verb 1
2324
tls-server

client/server_scripts/openvpn_shadowsocks/template.ovpn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ resolv-retry infinite
55
nobind
66
persist-key
77
persist-tun
8+
crl-verify crl.pem
89
$OPENVPN_NCP_DISABLE
910
cipher $OPENVPN_CIPHER
1011
auth $OPENVPN_HASH

client/ui/pages_logic/ClientInfoLogic.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void ClientInfoLogic::onRevokeOpenVpnCertificateClicked()
125125
auto error = m_serverController->runScript(credentials, script);
126126
if (isErrorOccured(error)) {
127127
set_busyIndicatorIsRunning(false);
128+
emit uiLogic()->goToPage(Page::ServerSettings);
128129
return;
129130
}
130131

@@ -136,14 +137,6 @@ void ClientInfoLogic::onRevokeOpenVpnCertificateClicked()
136137
return;
137138
}
138139

139-
error = m_serverController->uploadTextFileToContainer(container, credentials, "crl-verify crl.pem\n",
140-
protocols::openvpn::serverConfigPath,
141-
QSsh::SftpOverwriteMode::SftpAppendToExisting);
142-
if (isErrorOccured(error)) {
143-
set_busyIndicatorIsRunning(false);
144-
return;
145-
}
146-
147140
const QJsonObject &containerConfig = m_settings->containerConfig(uiLogic()->selectedServerIndex, container);
148141
error = m_serverController->startupContainerWorker(credentials, container, containerConfig);
149142
if (isErrorOccured(error)) {

docs/openVpnRevokeClientCertificate.plantuml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ cont -> cont: cd /opt/amnezia/openvpn
1212
cont -> cont: easyrsa revoke openvpnCertId
1313
cont -> cont: easyrsa gen-crl
1414
cont -> cont: cp pki/crl.pem crl.pem
15-
cont -> cont: add crl-verify crl.pem to server.conf
1615
cont -> ovpn: restart openvpn service
1716
note right
1817
In the OpenVpn config

0 commit comments

Comments
 (0)