Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws/session: Add support for client TLS certs on HTTP client #3654

Merged
merged 2 commits into from
Dec 8, 2020

Commits on Dec 4, 2020

  1. aws/session: Add support for client TLS certs on HTTP client

    Adds support for the SDK to automatically modify the HTTP client
    to include TLS configuration of custom Client TLS certificate. This
    configuration can be provide via the environment variable or directly in
    code via the `session.Options` struct.
    
    These options are compatible with the AWS_CA_BUNDLE configuration.
    
    Environment variable configuration
    
    Both `AWS_SDK_GO_CLIENT_TLS_CERT`, and `AWS_SDK_GO_CLIENT_TLS_KEY` must
    be provided together, and must point to valid PEM encoded file
    containing the certificate, and key respectively.
    
       AWS_SDK_GO_CLIENT_TLS_CERT=$HOME/my_client_cert
       AWS_SDK_GO_CLIENT_TLS_KEY=$HOME/my_client_key
    
    In code configuration via session.Options
    
    Alternative configuration is to specify the `ClientTLSCert` and
    `ClientTLSKey` fields on the `session.Options` struction. These are
    `io.Reader`s that provide the PEM encoded content for the certificate
    and key files.
    
      sess, err := session.NewSessionWithOptions(session.Options{
          ClientTLSCert: myCertFile,
          ClientTLSKey: myKeyFile,
      })
    jasdel committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    4da915f View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2020

  1. Configuration menu
    Copy the full SHA
    67a7b21 View commit details
    Browse the repository at this point in the history