https://nextgentips.com/2022/03/23/how-to-install-openssl-3-on-ubuntu-20-04/
sudo apt update
sudo apt upgrade -y
sudo apt install build-essential checkinstall zlib1g-dev -y
ssh-keygen -t ed25519 -C "22231294+Lutymane@users.noreply.github.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/gh
cd ~/src/
git clone -b master --single-branch --depth 1 git@github.com:openssl/openssl.git
apt-get remove openssl -y
sudo make uninstall
sudo ldconfig /usr/local/lib64/
/lib/x86_64-linux-gnu had previous version openssl libs, so sudo rming them ls | grep ssl ls | grep crypto
./Configure no-deprecated no-apps make
sudo make install_sw
ldconfig -v
sudo mv /usr/bin/c_rehash /usr/bin/c_rehash.BEKUP sudo mv /usr/bin/openssl /usr/bin/openssl.BEKUP
sudo nano /etc/environment
// append /usr/local/ssl/bin
cd /etc/ld.so.conf.d/
echo "/usr/local/ssl/lib64" | sudo tee openssl.conf > dev/null
sudo ldconfig -v
https://crypto.stackexchange.com/questions/9985/kdf-and-number-of-iterations-for-gpg
https://security.stackexchange.com/questions/15632/what-is-purpose-of-s2k-gnupg-options
default openssl installation has limited headers, so after compilation and installation from source you should copy headers into /usr/include to be used from angle brackets
sudo cp -a ./include/openssl /usr/include