[Openvpn-devel,1/1] man: correct the description of --capath and --crl-verify regarding CRLs
| Message ID | 20190409143438.25348-2-soltys@ziu.info |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director12.mail.ord1d.rsapps.net ([172.31.255.6]) by backend30.mail.ord1d.rsapps.net with LMTP id 8MVwBvuxrFx+IQAAIUCqbw for <patchwork@openvpn.net>; Tue, 09 Apr 2019 10:53:47 -0400 Received: from proxy10.mail.iad3b.rsapps.net ([172.31.255.6]) by director12.mail.ord1d.rsapps.net with LMTP id YNwaA/uxrFy1AwAAIasKDg ; Tue, 09 Apr 2019 10:53:47 -0400 Received: from smtp18.gate.iad3b ([172.31.255.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy10.mail.iad3b.rsapps.net with LMTP id AKn2N/qxrFyeCAAA/F5p9A ; Tue, 09 Apr 2019 10:53:46 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp18.gate.iad3b.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=ziu.info X-Suspicious-Flag: YES X-Classification-ID: 463f2ff6-5ad7-11e9-8b73-5254009ad1d4-1-1 Received: from [216.105.38.7] ([216.105.38.7:26849] helo=lists.sourceforge.net) by smtp18.gate.iad3b.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id A8/CE-17596-9F1BCAC5; Tue, 09 Apr 2019 10:53:46 -0400 Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1hDs7K-0005Kh-II; Tue, 09 Apr 2019 14:52:54 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from <soltys@ziu.info>) id 1hDs7H-0005KQ-4X for openvpn-devel@lists.sourceforge.net; Tue, 09 Apr 2019 14:52:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cBpUedOyIGBzxkyWl8IIYGhJ87KQ3fFFT0D1KVl6ADM=; b=ZH6eZu/0ODri46GxINDHXRJqRL ZWqgBp1hsSGI2vZOCnSmmPYRen7hxsw4onRfLJqyeR1B+/eK2ls9fZZbYTgvt4Hlrexdkdh1P6tvG 8Y09fo5YESJehTSZFDEPzL1bM6lpQCs2sHhOdNtxy7sHNUQYZsoHhJ+YQid/CiLk+N3U=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cBpUedOyIGBzxkyWl8IIYGhJ87KQ3fFFT0D1KVl6ADM=; b=Zkk3e1VtkOb3hYbaq4Uws1XzkU MsT56ytY0o1unfaxi4q5vwXUdZZsNK3EoHeogvC3M/eyi+pTRAXFjkJ9DXAU9jYYkkLJ4Hh17DGQ7 oAk/xTvY09mUH3U8oJlZ0CLwbuqqvxj6e5bIlPBMNRyhnmxcS9cwk48MXvZLRrw/jFqI=; Received: from drutsystem.com ([84.10.39.251]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1hDs7E-00BPqh-AD for openvpn-devel@lists.sourceforge.net; Tue, 09 Apr 2019 14:52:51 +0000 Received: from hakai.touk.pl (hosta.touk.pl [212.180.179.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by drutsystem.com (Postfix) with ESMTPSA id 3FA516F1251; Tue, 9 Apr 2019 16:35:08 +0200 (CEST) From: Michal Soltys <soltys@ziu.info> To: openvpn-devel@lists.sourceforge.net Date: Tue, 9 Apr 2019 16:34:38 +0200 Message-Id: <20190409143438.25348-2-soltys@ziu.info> In-Reply-To: <20190409143438.25348-1-soltys@ziu.info> References: <20190409143438.25348-1-soltys@ziu.info> MIME-Version: 1.0 X-MailScanner-ID: 3FA516F1251.A693C X-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailScanner-From: soltys@ziu.info X-Spam-Status: No X-Helo-Check: bad, Forged Random Domain (drutsystem.com) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.5 VA_HELO_CHECK Host Used Invalid or Forged HELO/EHLO -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [84.10.39.251 listed in list.dnswl.org] 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ziu.info] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1hDs7E-00BPqh-AD Subject: [Openvpn-devel] [PATCH 1/1] man: correct the description of --capath and --crl-verify regarding CRLs X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
--capath/--crl-verify description update
|
|
Commit Message
Michal Soltys
April 9, 2019, 4:34 a.m. UTC
The man page states that when using --capath, the user is required to
provide CRLs for CAs. This is not true and providing CRLs is optional -
both in case of --capath as well as --crl-verify options. When relevant
CRL is not found OpenVPN simply logs the warning in the logs while
allowing the connection, e.g.:
VERIFY WARNING: depth=0, unable to get certificate CRL
This patch clarifies the behavior.
Signed-off-by: Michal Soltys <soltys@ziu.info>
---
doc/openvpn.8 | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Comments
Am 09.04.19 um 16:34 schrieb Michal Soltys: > The man page states that when using --capath, the user is required to > provide CRLs for CAs. This is not true and providing CRLs is optional - > both in case of --capath as well as --crl-verify options. When relevant > CRL is not found OpenVPN simply logs the warning in the logs while > allowing the connection, e.g.: > On my server the connection used to fail without CRLs. I just retested this and with OpenSSL 1.1.1 there is not even a warning, so I am really confused now. Arne
On 4/10/19 10:24 AM, Arne Schwabe wrote: > Am 09.04.19 um 16:34 schrieb Michal Soltys: >> The man page states that when using --capath, the user is required to >> provide CRLs for CAs. This is not true and providing CRLs is optional - >> both in case of --capath as well as --crl-verify options. When relevant >> CRL is not found OpenVPN simply logs the warning in the logs while >> allowing the connection, e.g.: >> > > On my server the connection used to fail without CRLs. I just retested > this and with OpenSSL 1.1.1 there is not even a warning, so I am really > confused now. > > Arne Hmm, I do have warnings (with 1.1.1 and 1.1.0), at least at --verb 3: Wed Apr 10 15:42:44 2019 OpenVPN 2.4.7 [git:makepkg/2b8aec62d5db2c17+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 19 2019 Wed Apr 10 15:42:44 2019 library versions: OpenSSL 1.1.1b 26 Feb 2019, LZO 2.10 Wed Apr 10 15:42:44 2019 Diffie-Hellman initialized with 1024 bit key Wed Apr 10 15:42:44 2019 WARNING: experimental option --capath /home/nozo/openvpn-test/certs Wed Apr 10 15:42:44 2019 ECDH curve prime256v1 added Wed Apr 10 15:42:44 2019 TUN/TAP device tunovn opened Wed Apr 10 15:42:44 2019 TUN/TAP TX queue length set to 100 Wed Apr 10 15:42:44 2019 /usr/bin/ip link set dev tunovn up mtu 1500 Wed Apr 10 15:42:44 2019 /usr/bin/ip addr add dev tunovn 10.15.30.1/24 broadcast 10.15.30.255 Wed Apr 10 15:42:44 2019 Socket Buffers: R=[212992->212992] S=[212992->212992] Wed Apr 10 15:42:44 2019 UDPv4 link local (bound): [AF_INET][undef]:1194 Wed Apr 10 15:42:44 2019 UDPv4 link remote: [AF_UNSPEC] Wed Apr 10 15:42:44 2019 MULTI: multi_init called, r=256 v=256 Wed Apr 10 15:42:44 2019 IFCONFIG POOL: base=10.15.30.2 size=252, ipv6=0 Wed Apr 10 15:42:44 2019 Initialization Sequence Completed Wed Apr 10 15:42:48 2019 192.168.77.99:54604 TLS: Initial packet from [AF_INET]192.168.77.99:54604, sid=67ca0e76 da568cb7 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 VERIFY WARNING: depth=0, unable to get certificate CRL: C=PL, ST=Mazowieckie, L=Warszawa, O=TouK sp. z o.o. s.k.a., OU=Touki, CN=msl Wed Apr 10 15:42:48 2019 192.168.77.99:54604 VERIFY WARNING: depth=1, unable to get certificate CRL: C=PL, ST=Mazowieckie, L=Warszawa, O=TouK sp. z o.o. s.k.a., OU=IT, CN=TouK Intermediate X1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 VERIFY WARNING: depth=2, unable to get certificate CRL: C=PL, ST=Mazowieckie, L=Warszawa, O=TouK sp. z o.o. s.k.a., OU=IT, CN=TouK Root X1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 VERIFY OK: depth=2, C=PL, ST=Mazowieckie, L=Warszawa, O=TouK sp. z o.o. s.k.a., OU=IT, CN=TouK Root X1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 VERIFY OK: depth=1, C=PL, ST=Mazowieckie, L=Warszawa, O=TouK sp. z o.o. s.k.a., OU=IT, CN=TouK Intermediate X1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 VERIFY OK: depth=0, C=PL, ST=Mazowieckie, L=Warszawa, O=TouK sp. z o.o. s.k.a., OU=Touki, CN=msl Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_VER=2.4.7 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_PLAT=linux Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_PROTO=2 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_NCP=2 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_LZ4=1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_LZ4v2=1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_LZO=1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_COMP_STUB=1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_COMP_STUBv2=1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 peer info: IV_TCPNL=1 Wed Apr 10 15:42:48 2019 192.168.77.99:54604 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, 256 bit EC, curve: prime256v1
On 4/10/19 3:45 PM, Michal Soltys wrote: > On 4/10/19 10:24 AM, Arne Schwabe wrote: >> Am 09.04.19 um 16:34 schrieb Michal Soltys: >>> The man page states that when using --capath, the user is required to >>> provide CRLs for CAs. This is not true and providing CRLs is optional - >>> both in case of --capath as well as --crl-verify options. When relevant >>> CRL is not found OpenVPN simply logs the warning in the logs while >>> allowing the connection, e.g.: >>> >> >> On my server the connection used to fail without CRLs. I just retested >> this and with OpenSSL 1.1.1 there is not even a warning, so I am really >> confused now. >> >> Arne > > Hmm, I do have warnings (with 1.1.1 and 1.1.0), at least at --verb 3: > For the record, --verb 3 or stronger is required for those warnings to be logged. 2 will only record verify success, 1 won't log any of those. BTW, is this still considered an experimental option ?
On 19/04/10 15:51, Michal Soltys wrote: > On 4/10/19 3:45 PM, Michal Soltys wrote: >> On 4/10/19 10:24 AM, Arne Schwabe wrote: >>> Am 09.04.19 um 16:34 schrieb Michal Soltys: >>>> The man page states that when using --capath, the user is required to >>>> provide CRLs for CAs. This is not true and providing CRLs is optional - >>>> both in case of --capath as well as --crl-verify options. When relevant >>>> CRL is not found OpenVPN simply logs the warning in the logs while >>>> allowing the connection, e.g.: >>>> >>> >>> On my server the connection used to fail without CRLs. I just retested >>> this and with OpenSSL 1.1.1 there is not even a warning, so I am really >>> confused now. >>> >>> Arne >> >> Hmm, I do have warnings (with 1.1.1 and 1.1.0), at least at --verb 3: >> > > For the record, --verb 3 or stronger is required for those warnings to > be logged. 2 will only record verify success, 1 won't log any of those. > Anyway, it's beeen a bit since that thread - any chance to update the docs about this ? I can redo/rebase the patch as necessary.
Am 09.04.19 um 16:34 schrieb Michal Soltys: > The man page states that when using --capath, the user is required to > provide CRLs for CAs. This is not true and providing CRLs is optional - > both in case of --capath as well as --crl-verify options. When relevant > CRL is not found OpenVPN simply logs the warning in the logs while > allowing the connection, e.g.: I cannot get my OpenVPN to fail without CRLs, so it might be change in OpenSSL or OpenVPN but this patch changes to documentation to reflect current behaviour, so Acked-By: Arne Schwabe <arne@rfc2549.org>
Your patch has been applied to the master and release/2.4 branch.
Fixed one "hash>.<n>" typo on the fly.
commit b3cfc43da3583ae8aa761beb29f016311b2ba64f (master)
commit 3f72b838fd505dbd898cced364a655eef08a8c27 (release/2.4)
Author: Michal Soltys
Date: Tue Apr 9 16:34:38 2019 +0200
man: correct the description of --capath and --crl-verify regarding CRLs
Signed-off-by: Michal Soltys <soltys@ziu.info>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20190409143438.25348-2-soltys@ziu.info>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18343.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
diff --git a/doc/openvpn.8 b/doc/openvpn.8 index ce440447..a77866c7 100644 --- a/doc/openvpn.8 +++ b/doc/openvpn.8 @@ -4598,11 +4598,8 @@ they are distributed with OpenVPN, they are totally insecure. Directory containing trusted certificates (CAs and CRLs). Not available with mbed TLS. -When using the -.B \-\-capath -option, you are required to supply valid CRLs for the CAs too. CAs in the -capath directory are expected to be named <hash>.<n>. CRLs are expected to -be named <hash>.r<n>. See the +CAs in the capath directory are expected to be named hash>.<n>. CRLs are +expected to be named <hash>.r<n>. See the .B \-CApath option of .B openssl verify @@ -4613,6 +4610,11 @@ option of and .B openssl crl for more information. + +Similarly to the +.B \-\-crl\-verify +option CRLs are not mandatory \- OpenVPN will log the usual warning in the logs +if the relevant CRL is missing, but the connection will be allowed. .\"********************************************************* .TP .B \-\-dh file @@ -5685,6 +5687,10 @@ overall integrity of the PKI. The only time when it would be necessary to rebuild the entire PKI from scratch would be if the root certificate key itself was compromised. +The option is not mandatory \- if the relevant CRL is missing, OpenVPN will log +a warning in the logs \- e.g. "\fIVERIFY WARNING: depth=0, unable to get +certificate CRL\fR" \- but the connection will be allowed. + If the optional .B dir flag is specified, enable a different mode where