You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by eo...@apache.org on 2022/04/08 05:44:24 UTC
[pulsar] branch master updated: Use tlsCertRefreshCheckDurationSec instead of 0 for refresh value (#15075)
This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new e398d7e412c Use tlsCertRefreshCheckDurationSec instead of 0 for refresh value (#15075)
e398d7e412c is described below
commit e398d7e412c21e47c7e5d48225088f12874ebd29
Author: Michael Marshall <mm...@apache.org>
AuthorDate: Fri Apr 8 00:44:15 2022 -0500
Use tlsCertRefreshCheckDurationSec instead of 0 for refresh value (#15075)
---
.../src/main/java/org/apache/pulsar/common/util/SecurityUtility.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java b/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java
index 4560113ff67..e9266589ffc 100644
--- a/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java
+++ b/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java
@@ -548,7 +548,7 @@ public class SecurityUtility {
SslContextFactory sslCtxFactory = null;
if (autoRefresh) {
sslCtxFactory = new SslContextFactoryWithAutoRefresh(tlsAllowInsecureConnection, tlsTrustCertsFilePath,
- tlsCertificateFilePath, tlsKeyFilePath, tlsRequireTrustedClientCertOnConnect, 0);
+ tlsCertificateFilePath, tlsKeyFilePath, tlsRequireTrustedClientCertOnConnect, certRefreshInSec);
} else {
sslCtxFactory = new SslContextFactory();
SSLContext sslCtx = createSslContext(tlsAllowInsecureConnection, tlsTrustCertsFilePath,