diff options
author | yuryalekseev <yuryalekseev@yandex-team.com> | 2023-10-26 23:29:14 +0300 |
---|---|---|
committer | yuryalekseev <yuryalekseev@yandex-team.com> | 2023-10-26 23:46:32 +0300 |
commit | 88fe541748621e6416520240c54455f54091cfeb (patch) | |
tree | ab0a0340094e11517001e5eb3d41bb716f675fd8 | |
parent | 3be69bf3deb6f06121d3f4316f88c2a9532675d6 (diff) | |
download | ydb-88fe541748621e6416520240c54455f54091cfeb.tar.gz |
YT-17268: Use SSL_use_PrivateKey_file() instead of SSL_use_RSAPrivateKey_file().
-rw-r--r-- | yt/yt/core/bus/tcp/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/yt/core/bus/tcp/connection.cpp b/yt/yt/core/bus/tcp/connection.cpp index b1e090eac9..f1d6e6c39c 100644 --- a/yt/yt/core/bus/tcp/connection.cpp +++ b/yt/yt/core/bus/tcp/connection.cpp @@ -1968,7 +1968,7 @@ void TTcpConnection::TryEstablishSslSession() if (Config_->PrivateKey->FileName) { const auto& privateKeyFile = GET_CERT_FILE_PATH(*Config_->PrivateKey->FileName); - if (SSL_use_RSAPrivateKey_file(Ssl_.get(), privateKeyFile.data(), SSL_FILETYPE_PEM) != 1) { + if (SSL_use_PrivateKey_file(Ssl_.get(), privateKeyFile.data(), SSL_FILETYPE_PEM) != 1) { Abort(TError(NBus::EErrorCode::SslError, "Failed to load private key file: %v", GetLastSslErrorString())); return; } |