This reverts commit c9beef4315, because we have OpenSSL 3.0 support here. part of MDEV-28133
c9beef4315