This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch branch-2.8
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 4ee88f9b640e6207d84132fe902f9e1e96c8d25e
Author: Michael Marshall <[email protected]>
AuthorDate: Fri Apr 8 00:44:15 2022 -0500

    Use tlsCertRefreshCheckDurationSec instead of 0 for refresh value (#15075)
    
    (cherry picked from commit e398d7e412c21e47c7e5d48225088f12874ebd29)
---
 .../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 66acd262c66..73acbe6e742 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
@@ -550,7 +550,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,

Reply via email to