Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-30-2013, 11:20 AM   #1
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 366

Rep: Reputation: 31
VPN connection using TLS protocol with openVPN


I send a request in my university to have access through VPN and through the manual they provide i add in the firefox my personal certificate and then download it as a .p12 file.

Now i want to use this file to connect through the vpn but im little confused.
All tutorials i saw in internet in the config file of openvpn used .crt and .key files for ca , cert and key directives. Also i have to use and a .key file for the TLS connection but cannot understand where to find it (for tls-auth directive).

The only files that i have are the RootCA.pem (University's public key) and the cert.p12 that i've got from firefox.

Can someone give a hint on how to achieve a connection on the VPN?

Thanks in advance!
Old 07-01-2013, 06:47 AM   #2
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 366

Original Poster
Rep: Reputation: 31
Ok. Finally i used these commands and all works fine now.

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to OpenVPN and sharing that connection to another VPN as server depam Linux - Software 2 01-22-2013 08:42 AM
openvpn error: TLS Error: TLS key negotiation failed to occur within 60 seconds pendrive Linux - Networking 1 11-02-2011 09:39 AM
openvpn + newtorkmanager [no VPN connection was active] BlackHawk Linux - Networking 7 07-16-2011 12:33 AM
Fastest protocol, SSH, SSHFS, VPN, TLS/SSL Akonbobot Linux - Security 4 05-12-2007 09:20 PM

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration