-
Notifications
You must be signed in to change notification settings - Fork 17
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
Revoking certs and publishing CRL's #10
Comments
I've not looked at this at all, so anything you develop here would be very interesting. Something that triggered revocation via a chef-ssl action for approval, and then distributed the appropriate CRLs to managed hosts would be great. |
Ok, i'll think up a design and run it by you in a few weeks. cheers mikeMichael Hart On 2013-05-28, at 8:50 AM, Chris Andrews <[email protected]mailto:[email protected]> wrote: I've not looked at this at all, so anything you develop here would be very interesting. Something that triggered revocation via a chef-ssl action for approval, and then distributed the appropriate CRLs to managed hosts would be great. — |
I've finally been able to get back to this. After some research I found out that revoking certificates is not trivial, and is not at all supported by the eassl2 gem, nor the openssl gem it wraps. The only way to do it, as far as I can tell, is to resort to the command line, namely:
And then to generate the CRL pem file:
In both cases the commands require the regular openssl information (index files, config files, etc) and the CA password... making automation of all this rather difficult. My biggest user of certificates is OpenVPN, and OpenVPN 2.3 has the option to read a directory where each file in the directory is a revoked certificate, and the file name is the serial number. This leads me to the following proposal. When a certificate is deemed to be revoked:
An alternate path:
The advantage of splitting it up into two phases:
Code changes then:
I'd really appreciate some feedback! EDIT: data bag item is not copied but moved. |
I need to be able to properly revoke certificates (instead of simply deleting them) and publish CRL's in the near future. Has anyone done this already with chef-ssl? If not I may have a go at implementing it.
mike
The text was updated successfully, but these errors were encountered: