Skip to content

Conversation

@m8rmclaren
Copy link
Contributor

Added caCertificates []*x509.Certificate to Configuration struct and associated setter for Configuration promoted method.

func (c *Configuration) SetCaCertificates(caCertificates []*x509.Certificate) {
	if caCertificates != nil {
		c.caCertificates = caCertificates
	}
}

Then, built func buildHttpClient(config *Configuration) (*http.Client, error) function that places the trusted roots in the underlying transport layer.

Finally, updated README.md to detail the new support for setting root CAs.

@m8rmclaren m8rmclaren added the enhancement New feature or request label Aug 16, 2023
@m8rmclaren m8rmclaren self-assigned this Aug 16, 2023
@spbsoluble spbsoluble self-requested a review August 17, 2023 13:40
@m8rmclaren m8rmclaren merged commit 490ba26 into main Aug 18, 2023
@m8rmclaren m8rmclaren deleted the untrusted_root branch December 17, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants