diff --git a/s3bench.go b/s3bench.go index 76af88f..b9dab39 100644 --- a/s3bench.go +++ b/s3bench.go @@ -11,6 +11,8 @@ import ( "sort" "strings" "time" + "crypto/tls" + "net/http" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" @@ -80,11 +82,17 @@ func main() { fmt.Printf("Done (%s)\n", time.Since(timeGenData)) fmt.Println() + tr := &http.Transport { + TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, + } + httpClient := &http.Client{Transport: tr} + // Start the load clients and run a write test followed by a read test cfg := &aws.Config{ Credentials: credentials.NewStaticCredentials(*accessKey, *accessSecret, ""), Region: aws.String(*region), S3ForcePathStyle: aws.Bool(true), + HTTPClient: httpClient, } params.StartClients(cfg)