You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling to get TLS working with my go-swagger client, getting reply: 400 No required SSL certificate was sent
the setup of cert and key works fine in a vanilla http client where I do something like this:
tlsConfig := &tls.Config{
Certificates: []tls.Certificate{cert},
}
tlsConfig.BuildNameToCertificate()
transport := &http.Transport{TLSClientConfig: tlsConfig}
client := &http.Client{Transport: transport}
But I am failing getting this setup for my go-swagger client.
Would you have any code examples pls?
The text was updated successfully, but these errors were encountered:
Problem statement
I am struggling to get TLS working with my go-swagger client, getting reply: 400 No required SSL certificate was sent
the setup of cert and key works fine in a vanilla http client where I do something like this:
tlsConfig := &tls.Config{
Certificates: []tls.Certificate{cert},
}
tlsConfig.BuildNameToCertificate()
transport := &http.Transport{TLSClientConfig: tlsConfig}
client := &http.Client{Transport: transport}
But I am failing getting this setup for my go-swagger client.
Would you have any code examples pls?
The text was updated successfully, but these errors were encountered: