References: <20170102141723.mtgdfznx5rcsdurs@...30...> <20170102142646.GL78624@...1296...> <1fe64726-57a5-0496-5e40-67b80d8e9b3b@...1435...> <1483370642.926699217@...2230...> <061fcbb0-b364-63cf-9291-42db17348ca1@...1435...> <4957e2b9-46de-ca29-447d-37f4fb1b46e6@...1856...> From: =?UTF-8?Q?Samuli_Sepp=c3=a4nen?= Message-ID: <339f4682-9baa-1eda-ef0c-ffece696384c@...515...> Date: Mon, 24 Apr 2017 10:58:50 +0300 MIME-Version: 1.0 In-Reply-To: <4957e2b9-46de-ca29-447d-37f4fb1b46e6@...1856...> Content-Language: en-US Subject: Re: [Openvpn-devel] 2.4 sees all client certificates as expired when using crl-verify List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: Steffan Karger , openvpn-devel@lists.sourceforge.net On 23/04/2017 11:02, Steffan Karger wrote: >=20 > On 22-04-17 20:24, debbie10t wrote: >> >> On 02/01/17 15:39, Steffan Karger wrote: >>> On 02-01-17 16:24, SviMik wrote: >>>> >>>>> On 02-01-17 15:26, Gert Doering wrote: >>>>>> On Mon, Jan 02, 2017 at 03:17:23PM +0100, Alberto Gonzalez >>>>>> Iniesta wrote: >>>>>>> I just got this [1] bug report on OpenVPN 2.4 threating all >>>>>>> certs as expired when upgrading from 2.3. I find this quite >>>>>>> weird, but until I have some time to test it I thought asking >>>>>>> here would be faster. >>>>>> >>>>>> From the bug report: >>>>>> >>>>>> Mon Jan 2 07:37:10 2017 us=3D466023 1.2.3.4:36241 VERIFY ERROR: >>>>>> depth=3D0, >>>>> error=3DCRL has expired: C=3DXX, ST=3DXX, L=3DXXX, O=3DNone, CN=3Dmyc= n, >>>>> emailAddress=3Dmy@...2228... >>>>>> >>>>>> "what the log says" :-) >>>>>> >>>>>> 2.4 checks CRLs much more rigidly than 2.3 (precisely: 2.3 had >>>>>> some built-in checking which only looked at revocations, while >>>>>> 2.4 leaves this to the crypto library, and they check all fields >>>>>> more rigidly). >>>>>> >>>>>> Specifically, CRLs with an expired "next update" field are >>>>>> flagged as "expired" by OpenSSL, while the built-in check in 2.3 >>>>>> did not. >>>>> >>>>> This. I replied something similar on the debian bug tracker, but I >>>>> have no clue what will happen with that mail. >>>>> >>>>>> Since this bit a few people already, I wonder how we could >>>>>> communicate this better. >>>>> >>>>> I wonder about that too. Maybe some more verbose text on a wiki >>>>> page? We could even detect this specific error and add a link to >>>>> that page in the warning. >>>>> >>>> >>>> Is there an option to disable this check? It would be extremely >>>> useful to maintain (at least optional) backward compatibility with >>>> already existing setups, which originally relied on 2.3 behaviour. >>>> >>> >>> No, there is not. And I don't think there is an easy way to implement >>> that either. >>> >>> But, the fix is just as easy as the workaround: just regenerate the >>> CRL, with a more correct nextUpdate value. If you don't want your CRLs >>> expire, just put that value far enough into the future. >> >> Following this up, something like: >> https://community.openvpn.net/openvpn/wiki/SandBox >=20 > Excellent text! Thanks. Let's give this a good spot on the wiki. >=20 > -Steffan >=20 Perhaps a condensed version of that text should go to the --crl-verify section on the man-page? --=20 Samuli Sepp=C3=A4nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock