Hi @jimp
I have encountred another problem.
I am doing these tests in pfSense 2.5.1.r.20210322.0300 version.
When I export the OpenVPN User Configuration file from "VPN > OpenVPN > Client Export Utility > OpenVPN Clients > "USER" > Bundled Configurations > Archive" It generates a .zip file that contains three files:
xxxxxx.ovpn file
xxxxxx.p12 file
xxxxxx.key file
Are the xxxxxx.p12 file and the xxxxxx.key file the same that I can generate from "System > Certificate Manager > Certificates > "USER" > Export Key / Export P12"?
I think that not are the same because this:
I have generated a .zip OpenVPN User Config file.
I have created a OpenVPN connection in a client with this file and works fine.
I have changed the date of the pfSense to a date after the expiration date of the certificates of the CA, the OpenVPN Server and the User.
I have changed the date of the Client to the same date of the pfSense.
Evidently, the VPN Connection in the Client doesn't work because the Certificates have expired.
I have renewed the certificates of the CA, the OpenVPN Server and the User.
I have exported the .p12 and the .key files from "System > Certificate Manager > Certificates > "USER" > Export Key / Export P12"
I have replaced the old .p12 file by the new .p12 file in the Client and the VPN Connection works well again.
Then, I have replaced the old .key file by the new .key file in the Client and the VPN Connection doesn't work, not connects.
That is, if I replace only the .p12 file the VPN Connection works but if I replace both files the VPN Connection doesn't works.
I have exported a new OpenVPN User Configuration file with this new date from "VPN > OpenVPN > Client Export Utility > OpenVPN Clients > "USER" > Bundled Configurations > Archive".
I have create a new OpenVPN Connection in the Client with this file and works fine.
I have verified that the .key file that contains the .zip file and the .key file exported from Certification Manager have diferent sizes.
If I replace the .p12 and the .key files of the old VPN Connection with the .p12 and the .key files contained in the new .zip file, the VPN Connection connects without problems.
Best regards