Error: Cannot load certificate file cert.crt
If OpenVPN is unable to open the CA, Certificate, or Key files specified for your connection it will display an error message in the log similar to Cannot load certificate file cert.crt.
Info
This error indicates that the file is not a valid certificate or key file. The most common cause of this error is getting the CA, Certificate, and Key files mixed up when entering them into Viscosity.
The simplest way to check for, and fix, this is like so:
- Open Viscosity's Settings window and make sure the
Connectionstoolbar icon is selected. - Select your connection and click the
Editbutton. - Click on the
Authenticationtab. - Click the
Clearbutton next to each of the relevant fields. - Click the
Selectbutton next to each of the just-cleared fields, select the corresponding original file supplied by your VPN Provider. If you are unsure which file to select for which field you should contact your VPN Provider. - When finished click the
Savebutton.
If the error message still appears after following the above steps, the file is not a valid certificate/key file. In this case you should contact your VPN Provider and ask for the files to be resent.