Not trusted TLS error message has another string representation in Darwin platform. Since there is no another way to test for this specific error with Golang API, we will need to support this alternate error message.
In situations when cert is its own CA the SubKeyId is not same as AuthorityKeyId Refer https://cs.opensource.google/go/go/+/refs/tags/go1.18.2:src/crypto/x509/x509.go;l=1525 This PR handles this by validating the SubKeyId with correct value that is expected, extends the current TOFU style.