Testsuite: org.apache.catalina.valves.TestSSLValve Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.057 sec ------------- Standard Error ----------------- Oct 31, 2024 10:42:03 AM org.apache.catalina.valves.SSLValve invoke WARNING: Failed to process certificate string [-----BEGIN CERTIFICATE----- MIIFXTCCA0WgAwIBAgIJANFf3YTJgYifMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX aWRnaXRzIFB0eSBMdGQwHhcNMTcwNTI2MjEzNjM3WhcNMTgwNTI2MjEzNjM3WjBF MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50 ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC CgKCAgEA2ykNBanZz4cVITNpZcWNVmErUzqgSNrK361mj9vEdB1UkHatwal9jVrR QvFgfiZ8Gl+/85t0ebJhJ+rIr1ww6JE7v2s2MThENj95K5EwZOmgvw+CBlBYsFIz 8BtjlVYy+v7RaGPXfjrFkexQP9UIaiIIog2ClDZirRvb+QxS930/YW5Qo+X6EX6W /m/HvlorD25U4ni2FQ0y+EMO2e1jD88cAAMoP5f+Mf6NBK8I6yUeaSuMq7WqtHGV e4F1WOg5z9J5c/M69rB0iQr5NUQwZ1mPYf5Kr0P6+TLh8DJphbVvmHJyT3bgofeV JYl/kdjiXS5P/jwY9tfmhu04tsyzopWRUFCcj5zCiqZYaMn0wtDn08KaAh9oOlg8 Z6mJ9i5EybkLm63W7z7LxuM+qnYzq4wKkKdx8hbpASwPqzJkJeXFL/LzhKdZuHiR clgPVYnm98URwhObh073dKguG/gkhcnpXcVBBVdVTJZYGBvTpQh0afXd9bcBwOzY t4MDpGiQB2fLzBOEZhQ37kUcWPmZw5bNPxhx4yE96Md0rx/Gu4ipAHuqLemb1SL5] to create a java.security.cert.X509Certificate object java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Incomplete data at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:103) at java.base/java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:355) at org.apache.catalina.valves.SSLValve.invoke(SSLValve.java:180) at org.apache.catalina.valves.TestSSLValve.testSslClientCertBadFormat(TestSSLValve.java:247) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:50) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1197) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1042) Caused by: java.io.IOException: Incomplete data at java.base/sun.security.provider.X509Factory.readOneBlock(X509Factory.java:618) at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:95) ... 26 more Oct 31, 2024 10:42:03 AM org.apache.catalina.valves.SSLValve invoke SEVERE: The SSL provider specified on the connector associated with this request of [wontBeFound] is invalid. The certificate data could not be processed. java.security.NoSuchProviderException: no such provider: wontBeFound at java.base/sun.security.jca.GetInstance.getService(GetInstance.java:83) at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:206) at java.base/java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:243) at org.apache.catalina.valves.SSLValve.invoke(SSLValve.java:178) at org.apache.catalina.valves.TestSSLValve.testClientCertProviderNotFound(TestSSLValve.java:264) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:50) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1197) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1042) ------------- ---------------- --------------- Testcase: testSslClientCertShorter took 1.756 sec Testcase: testSslClientCertNull took 0.012 sec Testcase: testSslHeaderNullName took 0.012 sec Testcase: testSslClientCertIgnoredBegin took 0.109 sec Testcase: testSslHeaderMultiples took 0.001 sec Testcase: testSslHeaderNullModHeader took 0.002 sec Testcase: testSslHeaderNull took 0.002 sec Testcase: testSslClientCertBadFormat took 0.074 sec Testcase: testSslCipherUserKeySizeHeaderBadFormat took 0.004 sec Testcase: testSslSecureProtocolHeaderPresent took 0 sec Testcase: testSslCipherUserKeySizeHeaderPresent took 0.001 sec Testcase: testSslSessionIdHeaderPresent took 0 sec Testcase: testSslClientCertHeaderMultiSpace took 0.002 sec Testcase: testSslHeader took 0 sec Testcase: testSslCipherHeaderPresent took 0.001 sec Testcase: testSslClientCertHeaderSingleSpace took 0.001 sec Testcase: testSslClientCertHeaderEscaped took 0.025 sec Testcase: testSslClientCertHeaderTab took 0.001 sec Testcase: testClientCertProviderNotFound took 0.033 sec