VPN connection using TLS protocol with openVPN
Hello.
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! |
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 |
All times are GMT -5. The time now is 04:30 PM. |