To install OpenSSL on ubuntu 22.04, use the command "sudo apt install openssl -y". Read this post for more details on it.