OpenVPN PKCS#12 Cert+Key

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
pelowj
Posts: 25
Joined: Thu Feb 16, 2012 7:53 pm

OpenVPN PKCS#12 Cert+Key

Post by pelowj »

What's the best way to generate a PKCS#12 Cert+Key file for an OpenVPN client?

It seems that this is required for iOS 6's VPN-on-demand solution.

Cheers,
JP

pelowj
Posts: 25
Joined: Thu Feb 16, 2012 7:53 pm

Re: OpenVPN PKCS#12 Cert+Key

Post by pelowj »

Have it working now.

For your information, you can create the p12 file from the files downloaded from Gargoyle. In the terminal, change to the directory and enter the following command:

Code: Select all

openssl pkcs12 -export -inkey client_1.key -in client_1.crt -certfile ca.crt -out client_1.p12
You should now have a client_1.p12 file which you can use with iOS.

Beirigí bua,
JP

Post Reply