Skip to content

Commit ec89359

Browse files
If the ETP server is supporting TLS, it MUST support v1.2 or greater
1 parent deb60e3 commit ec89359

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/etp/ClientSessionLaunchers.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@ std::shared_ptr<ETP_NS::ClientSession> ETP_NS::ClientSessionLaunchers::createCli
6767
#ifdef WITH_ETP_SSL
6868
if (initializationParams->getEtpServerPort() == 443 || initializationParams->isTlsForced()) {
6969
// The SSL context is required, and holds certificates
70-
boost::asio::ssl::context ctx{ boost::asio::ssl::context::sslv23_client };
70+
// From official ETP documentation : If the ETP server is supporting TLS, it MUST support v1.2 or greater
71+
boost::asio::ssl::context ctx{ boost::asio::ssl::context::tlsv12_client };
7172
ctx.set_default_verify_paths();
7273
ctx.set_options(
7374
boost::asio::ssl::context::default_workarounds
7475
| boost::asio::ssl::context::no_sslv2
7576
| boost::asio::ssl::context::no_sslv3
77+
| boost::asio::ssl::context::no_tlsv1
78+
| boost::asio::ssl::context::no_tlsv1_1
7679
| boost::asio::ssl::context::single_dh_use
7780
);
7881

0 commit comments

Comments
 (0)