Netgate SG-1000 microFirewall

Author Topic: OpenVPN Client Export Files in pfSense 2.0RC  (Read 3369 times)

0 Members and 1 Guest are viewing this topic.

Offline cmariotti

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
OpenVPN Client Export Files in pfSense 2.0RC
« on: October 08, 2011, 09:39:21 am »
I’m using pfSense v2.0RC with OpenVPN with the Client Export feature.

Using the “Client Export” as Configuration Archive option in pfSense, I have a functioning OpenVPN connection for my Windows Client.

This Configuration Archive creates the following files:
TestVPN.ovpn
TestVPN.p12
TestVPN-tls.key

If I throw them into the OpenVPN directory in Windows and they connect up without issue (so long as I Run-As Administrator at least).

My problem is that I have a VPN phone that requires the following files to work:
Ca.crt
Phone.crt
Phone.key
Vpn.cnf (custom config file)

For reference, the sample file they have is here: http://www.snom.com/vpn/vpnclient.tar

It appears I have not setup the right type of OpenVPN connection that generates these files .crt and key files... What type of OpenVPN setup is needed to generate these types of files? Where can I find a guide for this type of setup?

Offline Nachtfalke

  • Hero Member
  • *****
  • Posts: 2889
  • Karma: +29/-1
    • View Profile
Re: OpenVPN Client Export Files in pfSense 2.0RC
« Reply #1 on: October 08, 2011, 09:57:26 am »
.p12 is a container format which contains all the three files you mentioned above.

If you need these three files then go to Cert Manager and download the three files from there manually.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21378
  • Karma: +1431/-26
    • View Profile
Re: OpenVPN Client Export Files in pfSense 2.0RC
« Reply #2 on: October 14, 2011, 10:54:55 am »
If you have openssl on the box with the .p12, you can convert it back to the split files:

Code: [Select]
openssl pkcs12 -in blah.p12 -out stuff.pem -nodes
Then stuff.pem will contain all three things you want, the ca certificate, and the client certificate/key
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline pat1974

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: OpenVPN Client Export Files in pfSense 2.0RC
« Reply #3 on: January 20, 2012, 07:12:28 am »
I can't find where to export the client file. I'm with pfsense 2.0.1, I created the vpn server, now trying to configure a client.

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 13398
  • Karma: +589/-7
    • View Profile
Re: OpenVPN Client Export Files in pfSense 2.0RC
« Reply #4 on: January 20, 2012, 07:17:08 am »
I can't find where to export the client file. I'm with pfsense 2.0.1, I created the vpn server, now trying to configure a client.

Did you installed the client export utility on system -> packages?

Offline pat1974

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: OpenVPN Client Export Files in pfSense 2.0RC
« Reply #5 on: January 21, 2012, 01:47:31 pm »
Thanks, didn't know I needed to install this.