Export OpenVPN server?



  • Hi,
    I was wondering if its possible to export the OpenVPN server certificate and import it to another pfSense box? The idea is that im going to virtualize pfSense currently running it on hardware. i have around 60 VPN, currently from 2.2.4 and going to upgrade to 2.3.5 or 2.4.x. I recently tried on a test box but no luck. Any ideas?

    Thank you



  • You may backup the whole configuration and then import it into the virtualized pfSense. The backup will also include all the certs.



  • Thanks for the reply, when you say backup the whole configuration as well as the packages? The idea is to do a clean install but only backing up the OpenVPN certs with the users

    Thank you



  • The package information can be excluded from the backup. But you have to backup and restore the whole configuration to also have the users and certs on the new installation.

    Otherwise you may export each CA, CRL and all certs you need from cert manager and reimport them on the new installation.
    The OpenVPN servers TLS keys are included in the OpenVPN backup.



  • Thanks for the reply. i saw for the backup i could download the openvpn stuff and the system which should be suffice for the restore?


  • Netgate

    I was wondering if its possible to export the OpenVPN server certificate and import it to another pfSense box?

    Just export the certificate and key and import them.



  • While i was testing out the exporting from pfsense 2.2.4 to 2.3.5 i got the certs working just when i connect i keep getting that auth failure, i even copy and pasted the password thinking i was going mad crazy.

    Pictures:
    pfSense 2.2.4
    0_1528744944246_cfff7347-95d8-4806-84cc-308d34a310c8-image.png
    0_1528745221224_Clipboarder.2018.06.11.png

    pfSense 2.3.5
    2_1528745041234_Clipboarder.2018.06.11-005.png 1_1528745041234_Clipboarder.2018.06.11-004.png 0_1528745041234_Clipboarder.2018.06.11-003.png

    Error:
    0_1528745160360_Clipboarder.2018.06.11-006.png

    Thank you