I’m working on a project in Java Spring Boot where I need to facilitate TLS communication between a fiscal cash register and a server. I have the cash register’s certificate, and I install a self-signed certificate of my server into the register through a limited software interface, along with a .p7b file, which is an XML file signed by me. This XML contains some important data for the register, such as the profile type (0 – offline, 1 – online) and a URL pointing to the server where I want it to send the daily sales data (Z report).
The communication needs to be secure between the register and the server, and I’ve made the necessary configurations in Spring Boot. I’ve used OpenSSL, Keytool, and Bouncy Castle for certificate generation and management.
I’m operating in a restricted local network via a router where both the cash register and my laptop are connected via LAN with static IPs. They can communicate just fine via ping in the command line. However, even though I’ve added the register’s certificate to the server’s truststore and successfully provided the signed profile file (with no errors related to it), the register does not send anything nor does it even try to connect to the server.
Still, I get error code -110702 when generating an online status report, which means:-110702 Network error: Connection error (cannot connect to a server).
I’ve modified the server and tried all profile options. I set the server to HTTP – didn’t work. Switched to HTTPS – still didn’t work. I even disabled the firewall, and guess what – that didn’t help either.
I’m out of ideas at this point, and the only remaining cause I can think of is the signed .p7b file that contains the server URL. When I test the endpoint using curl, I do get logs on the server, but when I try to send the Z report from the cash register, nothing shows up in the logs.
If anyone has any advice, I’d really appreciate it.