Description
Thanks to Josh for reporting that we have missing 'Not' in the if condition check.
if (conf.isGrpcMutualTlsRequired()) { return new GrpcTlsConfig( null, null, conf.getTrustStoreFile(), false); } else { return new GrpcTlsConfig(conf.getClientPrivateKeyFile(), conf.getClientCertChainFile(), conf.getTrustStoreFile(), true); }
it should have been
if (!conf.isGrpcMutualTlsRequired()) { return new GrpcTlsConfig( null, null, conf.getTrustStoreFile(), false); } else { return new GrpcTlsConfig(conf.getClientPrivateKeyFile(), conf.getClientCertChainFile(), conf.getTrustStoreFile(), true); }