How to setup Open SSL on ubuntu?

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

a2ensite default-ssl


Now check.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s