18 May 2013 13:53
[PATCH] pkcs12-additional-cas option to load CA+intermediate certs from both PKCS#12 and a --ca PEM file
Heikki Hannikainen <hessu <at> hes.iki.fi>
2013-05-18 11:53:51 GMT
2013-05-18 11:53:51 GMT
Hi, I've set up a VPN service which authenticates users using certificates provided by a 3rd party (which has manually authenticated the users from paper documents and given out some 50k certs). Their tools allow the end users to nicely export a PKCS#12 certificate which OpenVPN can currently use out of the box. Grand! The 3rd party does not give out server certificates, so my VPN server uses a certificate signed by my own CA. Thus I need to pass my CA to the VPN client using the --ca option. Currently OpenVPN ignores CA and intermediate certificates inside the PKCS#12 file if --ca is set. Without --ca it loads them. The problem is that the 3rd party CA uses intermediate certificates, and rotates them ~yearly without warning, so I need the client to load the intermediates from PKCS#12. To get both client and server validation working I need to load certs from both the PKCS#12 file and a PEM file provided using --ca. So, I added a client option 'pkcs12-additional-cas' to make the --ca and pkcs12 CA certs additive, not exclusive either-or. Default functionality is like before. Manual page updated, too. Patch attached, feedback welcome. I'm not quite sure if the name of the option (--pkcs12-additional-cas) is good. --- doc/openvpn.8 | 16 ++++++++++++++++ src/openvpn/options.c | 16 ++++++++++++++++(Continue reading)
RSS Feed