Secure Connection on LocalHost (C API)
Hi, I am using the solace localhost to connect to my applications.
I am able to do a default connection, but the secure connection is giving me an issue.
I am running my localhost as:
./farePub tcps://localhost:55443 default admin admin topic ../ssl
The error I am getting is:
SDK NOTICE Thu Aug 19 18:47:26.741 2021 solClientOS.c:5942 (7f522324f700) TCP: Could not read from socket 7, error = Connection reset by peer (104) SDK NOTICE Thu Aug 19 18:47:26.742 2021 solClientSmf.c:7232 (7f522324f700) Read failed from transport 'TCP' of session '(c0,s1)_default' due to 'TCP: Could not read from socket 7, error = Connection reset by peer (104)', client name 'chaudharylin/6219/#00000001/69n7eehmiw', VPN name 'default', peer host 'localhost:55443' address 'IP 127.0.0.1', connection 'tcp_TxRx' local address 'IP 127.0.0.1:56032'
Please guide me with what the issue is and how to resolve.
Best Answer
-
Hi @chaudharys ,
Please try to test your TLS connection as described here: https://solace.community/discussion/510/how-to-test-tls-connection-and-server-certificate#latest.
If there are still issues, have a look in the event.log.
0
Answers
-
Hi @chaudharys ,
Please try to test your TLS connection as described here: https://solace.community/discussion/510/how-to-test-tls-connection-and-server-certificate#latest.
If there are still issues, have a look in the event.log.
0 -
Do you have a server certificate installed on the broker? https://docs.solace.com/Configuring-and-Managing/Managing-Server-Certs.htm
Have you enabled/opened the secure port, 55443?
You can check the "details" of the Message VPN Services tab, make sure that it's showing "Up":
0