-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elegant solution for renewing CRL #236
Comments
Thanks @westbywest this is affecting me too. I hope that this module can fix the problem. Setting To give people a bit more context on your excellent answer, you'll see this error in the system log:
and
Here's a useful writeup from a bug report. Personally, I'll be setting |
add parameters: crl_auto_renew, crl_renew_schedule_period, crl_renew_schedule_repeat refs voxpupuli#236
add parameters: crl_auto_renew, crl_renew_schedule_period, crl_renew_schedule_repeat refs voxpupuli#236
With a simple date-check we could maybe regenerate the crl if needed..
Puppet is not my strongest field, so i have not yet managed to create an exec for this. |
@hertell Having the module push the CRL expiration date out to a parameter would help avoid a situation where the user may be unaware such an expiration date exists (i.e. independently of any $key_expire value they specify). Letting puppet silently regenerate the CRL in the background is one resolution, but not for situations where puppet is only run once upon machine deployment, or at least only run irregularly. Looks like changes are being tested to make a new parameter: to-kn@cb97a75 |
+1 |
add parameters: crl_auto_renew, crl_renew_schedule_period, crl_renew_schedule_repeat refs voxpupuli#236
i added a parameter for automatically renewing the crl-list (since not all systems can edit the default_crl_days) if you are interested, i can open a PR (see https://github.com/to-kn/puppet-openvpn/tree/add_crl_renewal) |
add parameters: crl_auto_renew, crl_renew_schedule_period, crl_renew_schedule_repeat refs voxpupuli#236
add parameters: crl_auto_renew, crl_renew_schedule_period, crl_renew_schedule_repeat refs voxpupuli#236
add parameters: crl_auto_renew, crl_renew_schedule_period, crl_renew_schedule_repeat refs voxpupuli#236 update tests
this issue is fixed by #256, @bastelfreak i think you can close this |
… are running into the issue now too: voxpupuli#236
For openvpn-2.4.3 under Redhat7, the openssl.cnf supplied to easy-rsa sneaks in a default 30day expiration for the CRL:
default_crl_days= 30
Since this module doesn't provide direct management of openssl.cnf, VPN clients will fail to connect after 30days per the likely unexpected default. A crude resolution is to delete crl.pem and run puppet again to regenerate. Even more crude is to set openvpn::server::crl_verify = false.
Should this module take a more active role in managing crl.pem freshness? I.e. parametrize default_crl_days, and/or toggle the option to delete / regenerate crl.pem?
The text was updated successfully, but these errors were encountered: