Failed to connect SSL.SSL connection unexpectedly closed: error:0A000152:SSL routines::unsafe legacy renegotiation disabled #4229
Unanswered
SAO-kirito-asuna
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[SYSTEM]
WINDOW10
[IDE]
Visual Studio 2015
[Poco version]
1.12.4
[OpenSSL version]
3.0.12
[Code]
Poco::Net::Context::Ptr pClientContext(new Poco::Net::Context(Poco::Net::Context::TLS_CLIENT_USE, "",
Poco::Net::Context::VERIFY_NONE));
pClientContext->requireMinimumProtocol(Poco::Net::Context::PROTO_TLSV1_2);
Poco::Net::HTTPSClientSession session(host, port, pContext)
session.reconnect();
I'm updating OpenSSL from 1.1.1u to 3.0.12.I failed to connect SSL and get the exception:
SSL connection unexpectedly closed: error:0A000152:SSL routines::unsafe legacy renegotiation disabled
It seems to be able to be solved by adding 'SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION' to ssl option.But I don't find any function in the class Poco::Net::Context or Poco::Net::HTTPSClientSession.
What should I do to set the option?
Beta Was this translation helpful? Give feedback.
All reactions