We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56551c6 commit 1ff7a92Copy full SHA for 1ff7a92
gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java
@@ -502,7 +502,7 @@ ChannelCredentials createS2ASecuredChannelCredentials() {
502
// Try to load MTLS-MDS creds.
503
File rootFile = new File(MTLS_MDS_ROOT);
504
File certKeyFile = new File(MTLS_MDS_CERT_CHAIN_AND_KEY);
505
- if (!rootFile.isFile() || !certKeyFile.isFile()) {
+ if (rootFile.isFile() && certKeyFile.isFile()) {
506
// Try to connect to S2A using mTLS.
507
ChannelCredentials mtlsToS2AChannelCredentials = null;
508
try {
0 commit comments