From da23f084863d6bde2bb50fcc175129610fe2a603 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 29 Dec 2020 10:52:24 +0100 Subject: xml: T1466: provide common includes for SSL certificate CLI nodes Gather all SSL certificate, ca and key nodes into a single representation of XML which can be #included into the XML definitions of the CLI interface to be rendered. --- interface-definitions/include/certificate-ca.xml.i | 14 ++ .../include/certificate-key.xml.i | 14 ++ interface-definitions/include/certificate.xml.i | 14 ++ .../include/webproxy-url-filtering.xml.i | 238 ++++++++++----------- interface-definitions/interfaces-openvpn.xml.in | 39 +--- interface-definitions/vpn_ipsec.xml.in | 20 +- interface-definitions/vpn_l2tp.xml.in | 10 +- interface-definitions/vpn_openconnect.xml.in | 42 +--- interface-definitions/vpn_sstp.xml.in | 38 +--- 9 files changed, 173 insertions(+), 256 deletions(-) create mode 100644 interface-definitions/include/certificate-ca.xml.i create mode 100644 interface-definitions/include/certificate-key.xml.i create mode 100644 interface-definitions/include/certificate.xml.i diff --git a/interface-definitions/include/certificate-ca.xml.i b/interface-definitions/include/certificate-ca.xml.i new file mode 100644 index 000000000..196cfa6d7 --- /dev/null +++ b/interface-definitions/include/certificate-ca.xml.i @@ -0,0 +1,14 @@ + + + + Certificate Authority in x509 PEM format + + file + File in /config/auth directory + + + + + + + diff --git a/interface-definitions/include/certificate-key.xml.i b/interface-definitions/include/certificate-key.xml.i new file mode 100644 index 000000000..3bfa4416d --- /dev/null +++ b/interface-definitions/include/certificate-key.xml.i @@ -0,0 +1,14 @@ + + + + Certificate private key in x509 PEM format + + file + File in /config/auth directory + + + + + + + diff --git a/interface-definitions/include/certificate.xml.i b/interface-definitions/include/certificate.xml.i new file mode 100644 index 000000000..73ae2dace --- /dev/null +++ b/interface-definitions/include/certificate.xml.i @@ -0,0 +1,14 @@ + + + + Certificate public key in x509 PEM format + + file + File in /config/auth directory + + + + + + + diff --git a/interface-definitions/include/webproxy-url-filtering.xml.i b/interface-definitions/include/webproxy-url-filtering.xml.i index de6ebffde..07db0948f 100644 --- a/interface-definitions/include/webproxy-url-filtering.xml.i +++ b/interface-definitions/include/webproxy-url-filtering.xml.i @@ -1,119 +1,119 @@ - - - - Category to allow - - - - - - - - - Allow IP address URLs - - - - - - Category to block - - - - - - - - - Default action (default: allow) - - allow block - - - allow - Default filter action is allow) - - - block - Default filter action is block - - - ^(allow|block)$ - - - - - - Enable safe-mode search on popular search engines - - - - - - Local keyword to block - - keyword - Keyword (or regex) to block - - - - - - - Local URL to block - - url - Local URL to block (without "http://") - - - - - - - Local site to block - - ipv4 - IP address of site to block - - - - - - - - - - - Local URL to allow - - url - Local URL to allow (without "http://") - - - - - - - Local site to allow - - ipv4 - IP address of site to allow - - - - - - - - - - - Log block category - - - all - - - - - + + + + Category to allow + + + + + + + + + Allow IP address URLs + + + + + + Category to block + + + + + + + + + Default action (default: allow) + + allow block + + + allow + Default filter action is allow) + + + block + Default filter action is block + + + ^(allow|block)$ + + + + + + Enable safe-mode search on popular search engines + + + + + + Local keyword to block + + keyword + Keyword (or regex) to block + + + + + + + Local URL to block + + url + Local URL to block (without "http://") + + + + + + + Local site to block + + ipv4 + IP address of site to block + + + + + + + + + + + Local URL to allow + + url + Local URL to allow (without "http://") + + + + + + + Local site to allow + + ipv4 + IP address of site to allow + + + + + + + + + + + Log block category + + + all + + + + + diff --git a/interface-definitions/interfaces-openvpn.xml.in b/interface-definitions/interfaces-openvpn.xml.in index 4c572a8b2..95a14d718 100644 --- a/interface-definitions/interfaces-openvpn.xml.in +++ b/interface-definitions/interfaces-openvpn.xml.in @@ -687,30 +687,8 @@ - - - File containing certificate for Certificate Authority (CA) - - file - File in /config/auth directory - - - - - - - - - File containing certificate for this host - - file - File in /config/auth directory - - - - - - + #include + #include File containing certificate revocation list (CRL) for this host @@ -735,18 +713,7 @@ - - - Private key for this host - - file - File in /config/auth directory - - - - - - + #include File containing encryption key to authenticate control channel diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in index c804c1683..daf98a833 100644 --- a/interface-definitions/vpn_ipsec.xml.in +++ b/interface-definitions/vpn_ipsec.xml.in @@ -847,24 +847,8 @@ X.509 certificate - - - File containing the X.509 certificate for the Certificate Authority (CA) - - txt - File in /config/auth - - - - - - File containing the X.509 certificate for this host - - txt - File in /config/auth - - - + #include + #include File containing the X.509 Certificate Revocation List (CRL) diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index 5b31235b1..42da75a64 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -80,15 +80,7 @@ X.509 certificate - - - File containing the X.509 certificate for the Certificate Authority (CA) - - txt - File in /config/auth - - - + #include File containing the X.509 Certificate Revocation List (CRL) diff --git a/interface-definitions/vpn_openconnect.xml.in b/interface-definitions/vpn_openconnect.xml.in index 791efcd80..ccf537e04 100644 --- a/interface-definitions/vpn_openconnect.xml.in +++ b/interface-definitions/vpn_openconnect.xml.in @@ -116,45 +116,9 @@ SSL Certificate, SSL Key and CA (/config/auth) - - - Certificate Authority certificate - - - - - file - File in /config/auth directory - - - - - - - - - Server Certificate - - file - File in /config/auth directory - - - - - - - - - Privat Key of the Server Certificate - - file - File in /config/auth directory - - - - - - + #include + #include + #include diff --git a/interface-definitions/vpn_sstp.xml.in b/interface-definitions/vpn_sstp.xml.in index 77b1c1ec1..134858608 100644 --- a/interface-definitions/vpn_sstp.xml.in +++ b/interface-definitions/vpn_sstp.xml.in @@ -52,41 +52,9 @@ SSL Certificate, SSL Key and CA (/config/user-data/sstp) - - - Certificate Authority certificate - - file - File in /config/auth directory - - - - - - - - - Server Certificate - - - - - - - - - - - Privat Key of the Server Certificate - - file - File in /config/auth directory - - - - - - + #include + #include + #include -- cgit v1.2.3