benchmark: Revert to use old certs. (#3860)

This commit is contained in:
Easwar Swaminathan 2020-09-01 17:59:14 -07:00 committed by GitHub
parent 0b575750a9
commit 8c8305f8d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {