You can use newer versions of OpenSSL, you just have to re-enable legacy_sect as it dropped support for the algorithm Hive requires.
openssl.conf
openssl_conf = openssl_init
[openssl_init]
providers = provider_sect
[provider_sect]
[legacy_sect]
default = default_sect
legacy = legacy_sect
[default_sect]
activate = 1
activate = 1
Then force pip install cryptography again.
You can find where your config is with
openssl version -d