-
Hi, I am trying to make an HTTPS call (SOAP 😱) to a third-party service that requires a PEM cert and key. It works fine using curl, but I can't seem to figure out how to replicate the request using Resty. This is the curl command:
I believe I need to use the SetTLSClientConfig func, but I am not sure how to correctly create the tls.Config object. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is what i currently have, but it changes all the time as I am experimenting:
|
Beta Was this translation helpful? Give feedback.
-
Have you try this: https://github.com/go-resty/resty#custom-root-certificates-and-client-certificates |
Beta Was this translation helpful? Give feedback.
Have you try this:
https://github.com/go-resty/resty#custom-root-certificates-and-client-certificates
https://pkg.go.dev/github.com/go-resty/resty/v2#Client.SetCertificates