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

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 41bd86afeb Remove duplication
41bd86afeb is described below

commit 41bd86afeb95500a4a0660ebd199ae91c74c1243
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Jan 13 10:29:01 2026 +0000

    Remove duplication
---
 test/org/apache/tomcat/util/net/ocsp/TestOcspIntegration.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/test/org/apache/tomcat/util/net/ocsp/TestOcspIntegration.java 
b/test/org/apache/tomcat/util/net/ocsp/TestOcspIntegration.java
index 94be4408a8..416bee6865 100644
--- a/test/org/apache/tomcat/util/net/ocsp/TestOcspIntegration.java
+++ b/test/org/apache/tomcat/util/net/ocsp/TestOcspIntegration.java
@@ -282,7 +282,7 @@ public class TestOcspIntegration extends TomcatBaseTest {
         File certificateKeyFile = new 
File(getPath(SERVER_CERTIFICATE_KEY_PATH));
         File certificateChainFile = new File(getPath(CA_CERTIFICATE_PATH));
         File truststoreFile = new File(getPath(TRUSTSTORE_PATH));
-        String truststorePass = Files.readString(new 
File(getPath(CLIENT_KEYSTORE_PASS)).toPath()).trim();
+        String truststorePass = Files.readString(new 
File(getPath(TRUSTSTORE_PASS)).toPath()).trim();
         initSsl(tomcat, serverSideOcspVerification, useOpenSSLTrust, 
certificateFile, certificateKeyFile,
                 certificateChainFile, truststoreFile, truststorePass);
 
@@ -293,9 +293,8 @@ public class TestOcspIntegration extends TomcatBaseTest {
         context.addServletMappingDecoded("/", "simple");
 
         KeyStore trustStore = KeyStore.getInstance(KEYSTORE_TYPE);
-        String trustStorePass = Files.readString(new 
File(getPath(TRUSTSTORE_PASS)).toPath()).trim();
         trustStore.load(new FileInputStream(new 
File(getPath(TRUSTSTORE_PATH)).getAbsolutePath()),
-                trustStorePass.toCharArray());
+                truststorePass.toCharArray());
         KeyStore clientKeystore = KeyStore.getInstance(KEYSTORE_TYPE);
         String clientKeystorePass = Files.readString(new 
File(getPath(CLIENT_KEYSTORE_PASS)).toPath()).trim();
         clientKeystore.load(new FileInputStream(new 
File(getPath(CLIENT_KEYSTORE_PATH)).getAbsolutePath()),


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to