I'm trying to execute a dotnet restore but without success. The nuget.config in root directory of my project points to my company artifactory and has some certificates that should be trusted by me.
This is the error:
The SSL connection could not be established, see inner exception.
The remote certificate is invalid according to the validation procedure.
I have the ca.crt file to trust but I tried a lot of things to trust on it in my mac, but without success:
- Using
brew info opensslto see where is the certs folder. Added the ca.cert under/usr/local/etc/openssl@3/certsand executed/usr/local/opt/openssl@3/bin/c_rehash. - Added ca.crt in
/usr/local/share/ca-certificatesfolder. - Append ca.crt in
/usr/local/share/ca-certificates/cacert.pem. - Added ca.cert under
/etc/ssl/certsfolder. - Added in KeyChain App.
Unhappy, nothing worked. Any tips ?