Click here to Skip to main content
15,742,377 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
To test client authentication, I set up an Apache server with PHP 7 and a Tomcat 7 server and configured them for Https.

The servers run on an older laptop under Windows 7 and on a desktop PC under Windows 10 Pro. All tests work as planned.

A Python 2.7 script and a Java 8 program are used as test clients (Java 8 with Zulu OpenJre) and additional access is carried out with Chrome and Firefox.

In order to be able also to test Spring-based REST web services in the future (no longer possible with Tomcat 7), I also installed a Tomcat 9 server on both computers and configured it for Https:
           port="8443" maxThreads="200"
           scheme="https" secure="true" SSLEnabled="true"
           SSLVerifyClient="optionalNoCA" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"
           SSLCaCertificateFile="C:\\Austausch\\SSLneu2\\testrootca-crt.pem" />

The access works for the most part on the Windows 7 laptop. I can access the test clients and browsers locally (localhost) and also remotely from the desktop PC (via IP address 192.168.n.n: 8443).

With Tomcat 9 on the Windows 10 PC, however, I have big problems. Only the Python client and the browser can access the Tomcat Server. The Java client cannot connect and reports always the error connection refused: connect.

From the laptop, I can neither remotely access the desktop Tomcat 9 server with the Python client, the Java client or the browsers. There is a timeout every time. The unencrypted connection via port 8080 works on the other hand.

It can't really be due to the desktop firewall (BullGuard), since everything works with the desktop Tomcat 7 server, both locally and remotely. I also deactivated the firewall as a test, without success.

Anyone have any ideas how I can fix this?

What I have tried:

I deactivated the BullGuard firewall
Updated 27-May-21 21:35pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900