Where is Golang picking up root CAs from in MacOS?

456 Views Asked by At

I found it explaining Linux: Where is Golang picking up root CAs from?

I want to understand how it's done on MacOS. Thanks.

1

There are 1 best solutions below

2
On BEST ANSWER

On macOS (and also Windows), Go does not load root certificates from the filesystem. Instead, Certificate.Verify calls c.systemVerify which uses APIs provided by the OS to validate certificates.