Apache Server SSL Certificate Installation online thru www.sslforfree.com/

Apache Server SSL Certificate Installation


Note this is Temporary base that certificat take from https://www.sslforfree.com/

for 90 Days
go below links and follow step

For help...https://www.sslforfree.com/


Requirments;;;;;;;;;

1-Your Domain should be connected with your HostServer
2-You shoud have .CSR and .KEY and .SRT files with location of

/root/your_crs.csr
/root/your_crt.crt
/root/your_key.key


First Need to enable your ssl with below command from /etc/apache2/mods-available

#a2enmod ssl.load

Second Need to some changes in our .conf file from /etc/apache2/sites-available


#nano yoursitename.conf

(add below line between your <VirtualHost> </VirtualHost> and edit 80 to 443 also)
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName yourdomainname
DocumentRoot /yourdirectorypath
<Directory /yourdirectorypath/>
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
DirectoryIndex index.html
</Directory>

        SSLEngine on
        SSLCertificateFile /root/iaccountant.co.in.crt
        SSLCertificateKeyFile /root/private.key
        SSLCACertificateFile /root/ca_bundle.crt

</VirtualHost>

(Note /root/iaccountant.co.in.crt mean yourdomainname.crt file location and /root/private.key means your .key file location and /root/ca_bundle.crt mean your ca_bundle.crt location. )



Third Need to add one more VirtualHost for Redirect your http to https inside the same file yoursitename.conf below line


<VirtualHost *:80>
        ServerName yourdomainname
        Redirect permanent / https://yourdomainname/
</VirtualHost>


Forth Need to restart your Apache and check


https://yourdomainname or http://yourdomainname

all hit will going to https (Secure Connection.)

Thank you

This is Arvind









Popular posts from this blog

Setup MySQL on Ubuntu Droplet getting error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Remote Desktop Sharing Dconf Tool in Linux (Ubuntu 14.04)

Configure Telnet & SSH on Router for Remote access.