OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. If you would like to install the OpenSSL latest version, just following the steps as below,

Download the openssl.git repository from the GitHub portal using Git command, the files are downloaded in openssl directory,

$ sudo git clone 

$ sudo cd openssl

then, git checkout the branch name "OpenSSL_1_1_1-stable"

$ sudo git checkout OpenSSL_1_1_1-stable 

Install the OpenSSL using the command below,

$ sudo ./config 

$ sudo make

$ sudo make test 

$ sudo make install