-
I have internal sites that present certificates signed by an internal PKI.
I tried to use this file as r, err := resty.New().
SetRootCertificate("mycerts.pem").
R().
SetResult(&u).
SetHeader("Accept", "application/json").
Get(fmt.Sprintf("%v/id/%v", whoUrl, user.EmployeeNumber)) This call fails with a I also tried to break the certificates into separate files (three in my case) and chain
Should I declare this chain in another way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Have a look here: |
Beta Was this translation helpful? Give feedback.
Have a look here:
https://pkg.go.dev/github.com/go-resty/resty/v2#Client.SetTLSClientConfig
https://pkg.go.dev/crypto/tls#Dial