cuno
Where does dotnet core on linux search for root certificates?
I am trying to make calls to a service and am gettinjg the following:
"The SSL connection could not be established. The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot"
The target service is using ca-certificates.crt from the node it's running on (provisioned on the cloud), and I want my service to also use the root CA from the node.
The service has access to /etc/pki/tls/certs/ca-certificates.crt but it doesn't appear to be picking it up (or else this would be working)
8 replies
❔ Cleanest way to initialize string outside of conditional statement where it's assigned?
string str = ""
if(something) {
str = "a"
} else {
str = "b"
}
Is this the cleanest way? or is there a better way to expose the str outside of conditional scope without this dirty empty string initialization
6 replies