This will be a straight forward instructional exercise on the most proficient method to introduce a SSL certificate in Linux with Zpanel installed
The tutorial shows how to install SSL Certificate with zPanel. You can utilize a self-marked SSL Certificate or purchase.
To begin with make ssl directory to simply maintain and proceed with the following commands
linuxtweaks ~]#mkdir /var/zpanel/hostdata/zadmin/ssl
linuxtweaks ~]#cd /var/zpanel/hostdata/zadmin/ssl
If you want to install self-signed certificate first go through this link click here and generate your self signed certificate.
On the other hand in the event that you need to purchase an certificate, please submit domain_ssl.key to a SSL Provider, then you will get domain_ssl.crt and domain_ssl.ca-group records.
Assuming that you have the following
Now, go to zpanel admin login and go to Server Admin >> Module Admin >> Override a Virtual Host Setting >> Select a domain and click Select Vhost
On port override field, enter : 443
Check ‘Forward Port 80 to Overriden Port’ on the off chance that you need to dependably utilize HTTPS
Fill IP Override : Server’s IP Address or you can leave it blank.
Next, fill the custom entry with your trusted ssl certificate as shown in below image
Then final step is either wait for 2 minute or restart apache service by the following command.
linuxtweaks ~]#/etc/init.d/httpd restart