Monday, April 13, 2009

change pkcs to pem for using ovpn package in ubuntu network manager

Thanks to Craig Millsap for his article on this:

To extract the CA Certificate:
openssl pkcs12 -in myvpn.p12 -cacerts -nokeys -out myvpnca.pem

To extract the Personal Certificate:
openssl pkcs12 -in myvpn.p12 -clcerts -nokeys -out myvpncert.pem

To extract the Private Key:
With a password: openssl pkcs12 -in mydccert.p12 -clcerts -nocerts -out myvpnkey.pem
Without a password: openssl pkcs12 -in mydccert.p12 -clcerts -nocerts -nodes -out myvpnkey.pem


http://www.carbm1.com/?p=184

Update May 2011.
Network Manager 0.8.1 (with Ubuntu 10.10) can now use use the PKCS12 file instead of creating separate pem files as above. simply use the ovpn config file as an import file and that's all that's needed.

No comments: