From: "cron2 (Code Review)" Date: Mon, 25 Mar 2024 15:25:44 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <69336d4837862b2761771e32bbf6feab9d14e734-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ZxsYGNaiXRU="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: documentation: make section levels consistent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --ZxsYGNaiXRU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/527?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: documentation: make section levels consistent ...................................................................... documentation: make section levels consistent Previously the sections "Encryption Options" and "Data channel cipher negotiation" were on the same level as "OPTIONS", which makes no sense. Instead move them and their subsections one level down. Use ` since that was already in use in section "Virtual Routing and Forwarding". Change-Id: Ib5a7f9a978bda5ad58830e43580232660401f66d Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20240325071520.12513-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28= 453.html Signed-off-by: Gert Doering --- M doc/man-sections/cipher-negotiation.rst M doc/man-sections/encryption-options.rst M doc/man-sections/pkcs11-options.rst M doc/man-sections/renegotiation.rst M doc/man-sections/tls-options.rst 5 files changed, 14 insertions(+), 14 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/27/527/3 diff --git a/doc/man-sections/cipher-negotiation.rst b/doc/man-sections/cip= her-negotiation.rst index 949ff86..1285e82 100644 --- a/doc/man-sections/cipher-negotiation.rst +++ b/doc/man-sections/cipher-negotiation.rst @@ -1,12 +1,12 @@ Data channel cipher negotiation -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D +------------------------------- OpenVPN 2.4 and higher have the capability to negotiate the data cipher th= at is used to encrypt data packets. This section describes the mechanism in m= ore detail and the different backwards compatibility mechanism with older server and clients. OpenVPN 2.5 and later behaviour --------------------------------- +``````````````````````````````` When both client and server are at least running OpenVPN 2.5, that the ord= er of the ciphers of the server's ``--data-ciphers`` is used to pick the data ci= pher. That means that the first cipher in that list that is also in the client's @@ -25,7 +25,7 @@ ``--cipher`` option to this list. OpenVPN 2.4 clients -------------------- +``````````````````` The negotiation support in OpenVPN 2.4 was the first iteration of the impl= ementation and still had some quirks. Its main goal was "upgrade to AES-256-GCM when = possible". An OpenVPN 2.4 client that is built against a crypto library that supports= AES in GCM @@ -40,7 +40,7 @@ options to avoid this behaviour. OpenVPN 3 clients ------------------ +````````````````` Clients based on the OpenVPN 3.x library (https://github.com/openvpn/openv= pn3/) do not have a configurable ``--ncp-ciphers`` or ``--data-ciphers`` option.= Newer versions by default disable legacy AES-CBC, BF-CBC, and DES-CBC ciphers. @@ -52,7 +52,7 @@ OpenVPN 2.3 and older clients (and clients with ``--ncp-disable``) ------------------------------------------------------------------- +`````````````````````````````````````````````````````````````````` When a client without cipher negotiation support connects to a server the cipher specified with the ``--cipher`` option in the client configuration must be included in the ``--data-ciphers`` option of the server to allow @@ -65,7 +65,7 @@ cipher used by the client is necessary. OpenVPN 2.4 server ------------------- +`````````````````` When a client indicates support for `AES-128-GCM` and `AES-256-GCM` (with ``IV_NCP=3D2``) an OpenVPN 2.4 server will send the first cipher of the ``--ncp-ciphers`` to the OpenVPN client regardless of what @@ -76,7 +76,7 @@ those ciphers are present. OpenVPN 2.3 and older servers (and servers with ``--ncp-disable``) ------------------------------------------------------------------- +`````````````````````````````````````````````````````````````````` The cipher used by the server must be included in ``--data-ciphers`` to allow the client connecting to a server without cipher negotiation support. @@ -89,7 +89,7 @@ cipher used by the server is necessary. Blowfish in CBC mode (BF-CBC) deprecation ------------------------------------------- +````````````````````````````````````````` The ``--cipher`` option defaulted to `BF-CBC` in OpenVPN 2.4 and older version. The default was never changed to ensure backwards compatibility. In OpenVPN 2.5 this behaviour has now been changed so that if the ``--ciph= er`` diff --git a/doc/man-sections/encryption-options.rst b/doc/man-sections/enc= ryption-options.rst index 3b26782..49385d6 100644 --- a/doc/man-sections/encryption-options.rst +++ b/doc/man-sections/encryption-options.rst @@ -1,8 +1,8 @@ Encryption Options -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +------------------ SSL Library information ------------------------ +``````````````````````` --show-ciphers (Standalone) Show all cipher algorithms to use with the ``--cipher`` @@ -32,7 +32,7 @@ ``--ecdh-curve`` and ``tls-groups`` options. Generating key material ------------------------ +``````````````````````` --genkey args (Standalone) Generate a key to be used of the type keytype. if keyfile diff --git a/doc/man-sections/pkcs11-options.rst b/doc/man-sections/pkcs11-= options.rst index de1662b..dfc27af 100644 --- a/doc/man-sections/pkcs11-options.rst +++ b/doc/man-sections/pkcs11-options.rst @@ -1,5 +1,5 @@ PKCS#11 / SmartCard options ---------------------------- +``````````````````````````` --pkcs11-cert-private args Set if access to certificate object should be performed after login. diff --git a/doc/man-sections/renegotiation.rst b/doc/man-sections/renegoti= ation.rst index c548440..1e7c340 100644 --- a/doc/man-sections/renegotiation.rst +++ b/doc/man-sections/renegotiation.rst @@ -1,5 +1,5 @@ Data Channel Renegotiation --------------------------- +`````````````````````````` When running OpenVPN in client/server mode, the data channel will use a separate ephemeral encryption key which is rotated at regular intervals. diff --git a/doc/man-sections/tls-options.rst b/doc/man-sections/tls-option= s.rst index 460cecf..de74c0d 100644 --- a/doc/man-sections/tls-options.rst +++ b/doc/man-sections/tls-options.rst @@ -1,5 +1,5 @@ TLS Mode Options ----------------- +```````````````` TLS mode is the most powerful crypto mode of OpenVPN in both security and flexibility. TLS mode works by establishing control and data -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/527?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ib5a7f9a978bda5ad58830e43580232660401f66d Gerrit-Change-Number: 527 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --ZxsYGNaiXRU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #3 to the change originally cr= eated by flichtenheld.

View Change

The following approvals got outda= ted and were removed: Code-Review+2 by plaisthos

documentation: make section levels consistent
Previously the sections "Encryption Options" and
"Da= ta channel cipher negotiation" were on the same
level as "OPTI= ONS", which makes no sense. Instead
move them and their subsections= one level down.

Use ` since that was already in use in section
&= quot;Virtual Routing and Forwarding".

Change-Id: Ib5a7f9a978bda= 5ad58830e43580232660401f66d
Signed-off-by: Frank Lichtenheld <frank@...220...= ..2641...>
Acked-by: Arne Schwabe <arne-openvpn@...1227...>
= Message-Id: <20240325071520.12513-1-gert@...1296...>
URL: https://= www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28453.html
S= igned-off-by: Gert Doering <gert@...1296...>
---
M doc/man-sect= ions/cipher-negotiation.rst
M doc/man-sections/encryption-options.rstM doc/man-sections/pkcs11-options.rst
M doc/man-sections/renegotiation.= rst
M doc/man-sections/tls-options.rst
5 files changed, 14 insertions= (+), 14 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/open=
vpn refs/changes/27/527/3
diff --git a/doc/man-sections/cipher-nego=
tiation.rst b/doc/man-sections/cipher-negotiation.rst
index= 949ff86..1285e82 100644
--- a/doc/man-sections/cipher-nego= tiation.rst
+++ b/doc/man-sections/cipher-negotiation.rst
@@ -1,12 +1,12 @@
Data channel cipher negot= iation
-=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D
+----------------= ---------------

OpenVPN 2.4 and higher h= ave the capability to negotiate the data cipher that
is us= ed to encrypt data packets. This section describes the mechanism in more de= tail and the
different backwards compatibility mechanism w= ith older server and clients.

OpenVPN 2.= 5 and later behaviour
---------------------------------
+```````````````````````= ````````
When both client and server are at least running = OpenVPN 2.5, that the order of
the ciphers of the server&#= 39;s ``--data-ciphers`` is used to pick the data cipher.
T= hat means that the first cipher in that list that is also in the client'= ;s
@@ -25,7 +25,7 @@
``--cipher`` option t= o this list.

OpenVPN 2.4 clients<= br>--------------------
+```````````````````
The negotiation support in O= penVPN 2.4 was the first iteration of the implementation
a= nd still had some quirks. Its main goal was "upgrade to AES-256-GCM wh= en possible".
An OpenVPN 2.4 client that is built aga= inst a crypto library that supports AES in GCM
@@ -40,7 +40= ,7 @@
options to avoid this behaviour.

OpenVPN 3 clients
------------------=
+````````````````` Clients based on the OpenVPN 3.x library (https://github.com/openv= pn/openvpn3/)
do not have a configurable ``--ncp-ciphers``= or ``--data-ciphers`` option. Newer
versions by default d= isable legacy AES-CBC, BF-CBC, and DES-CBC ciphers.
@@ -52,= 7 +52,7 @@


OpenVPN 2.3= and older clients (and clients with ``--ncp-disable``)
---= ----------------------------------------------------------------
= +``````````````````````````````= ````````````````````````````````````
When a client without= cipher negotiation support connects to a server the
ciphe= r specified with the ``--cipher`` option in the client configuration=
must be included in the ``--data-ciphers`` option of the server = to allow
@@ -65,7 +65,7 @@
cipher used by = the client is necessary.

OpenVPN 2.4 ser= ver
-------------------
+``````````````````
When a client indic= ates support for `AES-128-GCM` and `AES-256-GCM`
(with ``I= V_NCP=3D2``) an OpenVPN 2.4 server will send the first
cip= her of the ``--ncp-ciphers`` to the OpenVPN client regardless of what
@@ -76,7 +76,7 @@
those ciphers are present.

OpenVPN 2.3 and older servers (and servers= with ``--ncp-disable``)
----------------------------------= ---------------------------------
+`````````````````````````````````````````````````````````````= `````
The cipher used by the server must be included in ``= --data-ciphers`` to
allow the client connecting to a serve= r without cipher negotiation
support.
@@ -= 89,7 +89,7 @@
cipher used by the server is necessary.

Blowfish in CBC mode (BF-CBC) deprecation
-------------------------------------------
+`````````````````````````````````````= ````
The ``--cipher`` option defaulted to `BF-CBC` in Open= VPN 2.4 and older
version. The default was never changed t= o ensure backwards compatibility.
In OpenVPN 2.5 this beha= viour has now been changed so that if the ``--cipher``
diff= --git a/doc/man-sections/encryption-options.rst b/doc/man-sections/encrypt= ion-options.rst
index 3b26782..49385d6 100644
--- a/doc/man-sections/encryption-options.rst

+++ b/doc/= man-sections/encryption-options.rst
@@ -1,8 +1,8 @@<= br> Encryption Options
-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+------------------


SSL Library information
--------------= ----------
+`````````= ``````````````

--show-ciphers
= (Standalone) Show all cipher algorithms to use with the ``--cipher= ``
@@ -32,7 +32,7 @@
``--ecdh-curve`` an= d ``tls-groups`` options.

Generating key= material
------------------------
+```````````````````````

--genkey args
(Standalone) Generate a key= to be used of the type keytype. if keyfile
diff --git a/do= c/man-sections/pkcs11-options.rst b/doc/man-sections/pkcs11-options.rst
index de1662b..dfc27af 100644
--- a/doc/man-se= ctions/pkcs11-options.rst
+++ b/doc/man-sections/pkcs11-opt= ions.rst
@@ -1,5 +1,5 @@
PKCS#11 / SmartCa= rd options
----------------------------
+```````````````````````````
<= span>

--pkcs11-cert-private args
Set i= f access to certificate object should be performed after login.
<= span>diff --git a/doc/man-sections/renegotiation.rst b/doc/man-sections/ren= egotiation.rst

index c548440..1e7c340 100644
--- a/doc/man-sections/renegotiation.rst

+++ b/doc/man-se= ctions/renegotiation.rst
@@ -1,5 +1,5 @@
D= ata Channel Renegotiation
---------------------------
+`````````````````````````= `

When running OpenVPN in client/server = mode, the data channel will use a
separate ephemeral encry= ption key which is rotated at regular intervals.
diff --git= a/doc/man-sections/tls-options.rst b/doc/man-sections/tls-options.rst
index 460cecf..de74c0d 100644
--- a/doc/man-sec= tions/tls-options.rst
+++ b/doc/man-sections/tls-options.rs= t
@@ -1,5 +1,5 @@
TLS Mode Options<= br>-----------------
+````````````````

TLS mode is the = most powerful crypto mode of OpenVPN in both security
and = flexibility. TLS mode works by establishing control and data

To view, visit change 527. To unsubscribe, or for help wri= ting mail filters, visit set= tings.

=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib5a7f9a978bda5ad58830e43580= 232660401f66d
Gerrit-Change-Number: 527
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--ZxsYGNaiXRU=--