github.com/aavshr/aws-sdk-go@v1.41.3/example/aws/proxyWithTLSClientCert/README.md (about)

     1  # Example
     2  
     3  Example of using the AWS SDK for Go with an HTTPS_PROXY that requires client
     4  TLS certificates. The example will use the proxy configured via the environment
     5  variable `HTTPS_PROXY` proxy a request for the Amazon S3 `ListBuckets` API
     6  operation call.
     7  
     8  The example assumes credentials are provided in the environment, or shared
     9  credentials file `~/.aws/credentials`. The `certificate` and `key` files paths
    10  are required to be specified when the example is run. An certificate authority
    11  (CA) file path can also be optionally specified.
    12  
    13  Refer to [httpproxy.FromEnvironment](https://godoc.org/golang.org/x/net/http/httpproxy#FromEnvironment)
    14  for details using `HTTPS_PROXY` with the Go HTTP client. 
    15  
    16  ## Usage:
    17  
    18  ```sh
    19  export HTTPS_PROXY=https://127.0.0.1:8443
    20  export AWS_REGION=us-west-2
    21  go run -cert <certfile> -key <keyfile> [-ca <cafile>]
    22  ```
    23