MATLAB: Do I receive a Connection error during installation for only the R2019a prerelease

MATLAB

Why do I receive a connection error for only the R2019a pre-release and no other releases?
Why does my log file contain lines about java.security.KeyStoreException and java.security.cert.CertificateParsingException?

Best Answer

Prior to R2019a the source of trusted root certificates SSL/TLS HTTPS connections was a file with certificates that were shipped with MATLAB. In MATLAB R2019a the source of trusted root certificates has changed to instead use the operating systems root certificate store. On Windows that is the the Windows Certificate Store.
The issue that you have encountered occurs because one or more of the certificates in your Windows Certificate Store cannot be imported be parsed correctly. This currently aborts the whole certificate import operation and results in the exception during the installation you encounter. This should be fixed in the release of R2019a.
To work around this issue the only thing you can do is to locate the problematic certificate in your Windows Certificate Store and delete it. To do that:
1) Open the Windows Certificate Store for Local Machine (requires Admin rights):
[Win+R] -> certlm.msc -> [Enter]
2) Expand "Trusted Root Certification Authorities" > "Certificates"
3) Locate the certificate in the list. The exception in the log indicate that the problematic certificate is a V1 certificate that has fields which are not supported by V1. Open each certificate by double-clicking on it, select the "Details" tab and inspect the "Version" field. If it is a V1 certificate it's a good chance that is the problematic one as V1 is quite rather these days.
4) For the problematic certificate: Right-click on it and select "Delete". Before doing this you might want to export the certificate to a file if you wants to keep a backup of it.