Where is Golang picking up root CAs from in MacOS?

445 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 answers

2
Peter 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.