Skip to contentSkip to conversation

2.4 sees all client certificates as expired when using crl-verify

Openvpn-devel Alberto Gonzalez Iniesta 7 participants 10 messages Jan 2, 2017 – Apr 24, 2017

lore
Share & tools
lore
#0 lore raw

Hi there,

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.

Thanks,

Alberto

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849909

Signature · 5 lines
Alberto Gonzalez Iniesta    | Formación, consultoría y soporte técnico
mailto/sip: [email protected]... | en GNU/Linux y software libre
Encrypted mail preferred    | http://inittab.com

Key fingerprint = 5347 CBD8 3E30 A9EB 4D7D  4BF2 009B 3375 6B9A AA55
#1 lore raw

Hi,

Quoted 3 lines · Alberto Gonzalez Iniesta

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.

#2 lore raw
Quoted 17 lines · Gert Doering

Hi,

Quoted 3 lines · Alberto Gonzalez Iniesta

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=466023 1.2.3.4:36241 VERIFY ERROR: depth=0, error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

"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).

Quoted 10 lines

Specifically, CRLs with an expired "next update" field are flagged as "expired" by OpenSSL, while the built-in check in 2.3 did not.

Since this bit a few people already, I wonder how we could communicate this better.

gert

Oh! I see. Thanks Gert!!

I can/will add a note on the Debian package, but that has a limited audience.

Cheers,

Alberto

Signature · 5 lines
Alberto Gonzalez Iniesta    | Formación, consultoría y soporte técnico
mailto/sip: [email protected]... | en GNU/Linux y software libre
Encrypted mail preferred    | http://inittab.com

Key fingerprint = 5347 CBD8 3E30 A9EB 4D7D  4BF2 009B 3375 6B9A AA55
#3 lore raw
In reply to Gert Doering
Quoted 9 lines · Gert Doering
Quoted 3 lines · Alberto Gonzalez Iniesta

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=466023 1.2.3.4:36241 VERIFY ERROR: depth=0, error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

Quoted 8 lines

"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.

Quoted 2 lines

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.

-Steffan

#4 lore raw
Quoted 25 lines · Gert Doering
Quoted 8 lines · Alberto Gonzalez Iniesta
Quoted 3 lines

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=466023 1.2.3.4:36241 VERIFY ERROR: depth=0,

error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

Quoted 9 lines

"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.

Quoted 7 lines
Quoted 2 lines

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.

#5 lore raw
Quoted 33 lines · SviMik
Quoted 33 lines · Gert Doering
Quoted 11 lines
Quoted 4 lines · Alberto Gonzalez Iniesta

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=466023 1.2.3.4:36241 VERIFY ERROR:
depth=0,

error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

Quoted 11 lines

"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.

Quoted 2 lines

Since this bit a few people already, I wonder how we could communicate this better.

Quoted 9 lines
Quoted 4 lines

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.

-Steffan

#6 lore raw
Quoted 44 lines · Steffan Karger
Quoted 33 lines · SviMik
Quoted 33 lines · Gert Doering
Quoted 11 lines
Quoted 4 lines · Alberto Gonzalez Iniesta

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=466023 1.2.3.4:36241 VERIFY ERROR:
depth=0,

error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

Quoted 11 lines

"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.

Quoted 2 lines

Since this bit a few people already, I wonder how we could communicate this better.

Quoted 9 lines
Quoted 4 lines

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.

Quoted 6 lines

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

#7 lore raw
Quoted 49 lines · On 22-04-17 20:24, debbie10t wrote:
Quoted 47 lines · Steffan Karger
Quoted 33 lines · SviMik
Quoted 33 lines · Gert Doering
Quoted 11 lines
Quoted 4 lines · Alberto Gonzalez Iniesta

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=466023 1.2.3.4:36241 VERIFY ERROR:
depth=0,

error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

Quoted 11 lines

"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.

Quoted 2 lines

Since this bit a few people already, I wonder how we could communicate this better.

Quoted 9 lines
Quoted 4 lines

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.

Quoted 6 lines
Quoted 3 lines

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

Excellent text! Thanks. Let's give this a good spot on the wiki.

-Steffan

#8 lore raw
Quoted 55 lines · Steffan Karger
Quoted 53 lines · On 22-04-17 20:24, debbie10t wrote:
Quoted 50 lines · Steffan Karger
Quoted 33 lines · SviMik
Quoted 33 lines · Gert Doering
Quoted 11 lines
Quoted 4 lines · Alberto Gonzalez Iniesta

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=466023 1.2.3.4:36241 VERIFY ERROR:
depth=0,

error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

Quoted 11 lines

"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.

Quoted 2 lines

Since this bit a few people already, I wonder how we could communicate this better.

Quoted 9 lines
Quoted 4 lines

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.

Quoted 7 lines
Quoted 2 lines

Following this up, something like:
https://community.openvpn.net/openvpn/wiki/SandBox

Excellent text! Thanks. Let's give this a good spot on the wiki.

-Steffan

Perhaps a condensed version of that text should go to the --crl-verify section on the man-page?

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#9 lore raw
Quoted 59 lines · Samuli Seppänen
Quoted 58 lines · Steffan Karger
Quoted 55 lines · On 22-04-17 20:24, debbie10t wrote:
Quoted 44 lines · Steffan Karger
Quoted 33 lines · SviMik
Quoted 33 lines · Gert Doering
Quoted 11 lines
Quoted 4 lines · Alberto Gonzalez Iniesta

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=466023 1.2.3.4:36241 VERIFY ERROR:
depth=0,

error=CRL has expired: C=XX, ST=XX, L=XXX, O=None, CN=mycn, [email protected]...

Quoted 11 lines

"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.

Quoted 2 lines

Since this bit a few people already, I wonder how we could communicate this better.

Quoted 9 lines
Quoted 4 lines

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.

Quoted 6 lines

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

Quoted 8 lines
Quoted 4 lines

Excellent text! Thanks. Let's give this a good spot on the wiki.

-Steffan

Perhaps a condensed version of that text should go to the --crl-verify section on the man-page?

Please feel free to edit, improve, correct and use it as preferred.