Step 1 – To install the OpenSSL binary toolkit, install the openssl package.
sudo apt-get install openssl
To install the OpenSSL general-purpose library, first determine the applicable version of the library available for your Ubuntu computer with the following command issued at a terminal prompt:
apt-cache search libssl | grep SSL
Step 2 – After install and run above command successfully, It will generate the file default-ssl.conf under apache2 server. [ if using nginx then it will will be under nginx config folder ]
Step 3 – Config the path of virtual host dir like below
Step 4 – enable the default ssl for the system