Getting SSLException : Unacceptable certificate from abc.example.com: application verification failure #5122
Replies: 6 comments
-
|
try using Poco::Net::Context::VERIFY_NONE |
Beta Was this translation helpful? Give feedback.
-
|
This issue is stale because it has been open for 365 days with no activity. |
Beta Was this translation helpful? Give feedback.
-
|
This is expected behavior, not a POCO bug. What's happening: Why POCO rejects it: Solution - disable extended verification: lpWssContext = new Poco::Net::Context(Poco::Net::Context::TLS_CLIENT_USE, "", "", "",
Poco::Net::Context::VERIFY_RELAXED, 9, true);
lpWssContext->enableExtendedCertificateVerification(false); // Add this lineThis keeps certificate chain validation ( Security note: Disabling extended verification means you won't be protected against hostname spoofing attacks. Only use this in controlled environments (like corporate networks with SSL inspection) where you trust the proxy. Closing as this is a usage question, not a bug. |
Beta Was this translation helpful? Give feedback.
-
|
Converting this issue to a discussion as it's a usage question rather than a bug report. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions