In order to support weak ciphers for legacy device connectivity, it may be necessary to compile OpenSSL with the enable-weak-ssl-ciphers
flag enabled.
For Ubuntu systems, I've created a PPA to allow package management via APT instead of building from source on each system.
Currently, there are packages for 18.04 (Bionic Beaver), 20.04 (Focal Fossa), 22.04 (Jammy Jellyfish), ahd 24.04 (Noble Numbat):
https://launchpad.net/~kmix/+archive/ubuntu/openssl
There are instructions for adding the PPA on the Launchpad page. To hold a package at a certain version (so that a newer distribution package doesn't overwrite it), you can hold the package at a certain version: