Skip to content

Commit

Permalink
benchmark: Revert to use old certs. (#3860)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars authored Sep 2, 2020
1 parent 0b57575 commit 8c8305f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmark/worker/benchmark_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func createConns(config *testpb.ClientConfig) ([]*grpc.ClientConn, func(), error
// Check and set security options.
if config.SecurityParams != nil {
if *caFile == "" {
*caFile = testdata.Path("x509/server_ca.pem")
*caFile = testdata.Path("ca.pem")
}
creds, err := credentials.NewClientTLSFromFile(*caFile, config.SecurityParams.ServerHostOverride)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions benchmark/worker/benchmark_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ func startBenchmarkServer(config *testpb.ServerConfig, serverPort int) (*benchma
// Set security options.
if config.SecurityParams != nil {
if *certFile == "" {
*certFile = testdata.Path("x509/server1_cert.pem")
*certFile = testdata.Path("server1.pem")
}
if *keyFile == "" {
*keyFile = testdata.Path("x509/server1_key.pem")
*keyFile = testdata.Path("server1.key")
}
creds, err := credentials.NewServerTLSFromFile(*certFile, *keyFile)
if err != nil {
Expand Down

0 comments on commit 8c8305f

Please sign in to comment.