MATLAB: Do I get an error “failed to validate certificate” when running the download agent

MATLAB

I am trying to launch the download agent, but I get the following message:
Failed to validate certificate. The application will not be executed.
When I click on the "Details" tab on the error, I get the following message:
java.io.FileNotFoundException: C:\%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs (Access is denied)...

Best Answer

If you receive this error, this could be due to an untrusted publisher certificate file. To workaround the error, please follow the steps below depending on your Operating System:
Windows:
1) Open Control Panel
2) Click on the Java icon to open the Java Control Panel
3) Click on the Advanced tab and then Security (+) box
4) Click on the General (+) box
5) Click the box for "Enable list of trusted publishers"
6) Close out of the Java Control Panel and try re-launching the download agent.
If the error persists, please delete the trusted.certs file in the path:
%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\
Mac OS X:
1) Open Applications - Utilities
2) Open Java Preferences.app
3) Click on the Advanced tab
5) Click the box for "Enable list of trusted publishers" under the "Security" section
6) Close out of the Java Preferences application and try re-launching the download agent.
If you still get an error, please use the manual download method.