Open gokulkrishna-k opened 1 month ago
try using Poco::Net::Context::VERIFY_NONE because if you use VERIFY_RELAXED you need to create the Poco::Net::Context giving the correct caLocation file. For example you can use a .pem file from mozilla firefox you can find it online
when establishing a WebSocket connection to our server this exception occurs. Unacceptable certificate from abc.example.com: application verification failure The exception is captured by const Poco::Net::SSLException &e , kindly refer the code below
initialize() will be called before connect()
I observed that this exception only occurs when the SSL cert received from the server contains different CN instead of the server endpoint I'm connecting to (in case Self Signed firewall certificates).
I printed the certificate , here is the sample as i cannot share the original certificate
xyz.com is not the server I'm trying to connect to.
1414 - this is similar to my issue but in my case I'm using WebSocket with HTTPClientSession
Thanks in advance for any suggestions.