-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: add client opts to enable system certificates
Additionally, this splits out WithCredentials into separate methods: - WithCredentials configures the client credentials presented to the server - WithServerConfig configures the name and ca certificate to check the server's certificate against - WithServerConfigSystem configures the name to check the server's certificate against - the ca certificate is automatically pulled from the system store. Signed-off-by: Justin Chadwell <me@jedevc.com>
- Loading branch information
Showing
2 changed files
with
106 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters