Allow "self signed certificate in certificate chain"

Hi there,
our network is behind a firewall with ssl inspection. So it’s a man-in-the-middle and re-sign the certificates. I can’t change it. I have to set the clients on my PC to ignore strict-ssl or assign the certificates. e.g. for NPM, etc.

Is there an option in Unity (e.g. setting or enviroment variable, etc) to ignore self signed certificates?
I mean not in my scripts. I mean in editor. e.g. The Package Manager connects to a URL to fetch the possible additional packages. But I get an error.

Cannot perform upm operation: self signed certificate in certificate chain [NotFound]
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

The most straight-forward thing is to add your certificate to your OSes trusted root certificate store. Unity takes trusted certs from there.

Thats weird, because the certificates are set in my OS. (Windows 10 Pro 64bit) I checked it in the certmgr of windows and asked our admin. And the Chrome browser works as well. And it also access to it. In my experience the best solution is to set strict-ssl to false of every client. I guess Unity has no such property, right? If so I have a great new feature request for unity. :slight_smile:

Mabye the package manager is a separated system and does not use the OS certs or needs an option to disable strict-ssl?

Are you really sure that Unity takes trusted certs from the windows certificates? (certlm / certmgr)? (please see my prev post)

Looked into code: we are using CertOpenStore()/CertEnumCertificatesInStore() to get certificates on Windows.

Ok, thanks. Weird, that this is not working in my case.
For Google Chrome it works.