As a Puppet Mongrel Nginx user, I’m really ashamed about the convoluted nginx configuration needed (two server blocks listening on different ports, you need to direct your clients CA interactions to the second port with –ca_port), and the lack of support of proper CRL verification.
If you are like me, then there is some hope in this blog post.
Last week-end, I did some intense Puppet hacking (certainly more news about this soon), and part of this work is two Nginx patch:
- The first one adds support for ssl_client_verify optional. In this mode nginx accepts a client without a certificate, and of course accepts a client as long as it verifies against the CA certificate.
- The second patch adds support for CRL PEM files (the one we usually deploy in Puppet).
Installation
First, download both patches:
Then apply them to Nginx (tested on 0.7.59):
1 2 3 | |
Then build Nginx as usual.
Usage
Here is a revised Puppet Nginx Mongrel configuration:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
Reload nginx, and enjoy :-)