github:
git clone https://github.com/openssl/openssl.git (take a few minutes)
cd openssl
First install perl template
perl:
1.apt-cache search Text::Template
libcgi-formbuilder-perl - Easily generate and process stateful CGI forms
libdist-zilla-plugin-templatefiles-perl - plugin that enables the use of templates in a Dist::Zilla distribution
libtext-micromason-perl - simple and extensible templating module
<b>libtext-template-per</b>l - perl module to process text templates
2.sudo apt-get install libtext-template-perl
openssl
1. ./config
2. make
3. make test
4. make install (recommand sudo make install (if permission denied for dectory /usr/local/include ,even you should chmod 777 /usr/local/include))
when you use openssl in a terminal,may be there is a error,for not found the openssl.so or openssl.so.1.1
you should cp the so file to /usr/lib/
sudo cp /usr/local/lib/lib*.so /usr/lib
sudo cp /usr/local/lib/lib*.so.1.1 /usr/lib
test if successful
$openssl version
OpenSSL 1.1.1-dev xx XXX xxxx