1. get ssl from ssls.com which is comodo
2. go to my certificates.
3. generate CRS on https://www.thesslstore.in/ssltools/csr-generator.php#results
4. save both certificate request and private key code in a file
5. validate domain with email or file upload.
6. after some time certificate will become active.
7. download files and upload them to a save folder on server.
8. upload privatekey file you saved in same folder.
and change 000-default.conf file or any virualhost file
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName flyoticket.com
#Redirect permanent / https://flyoticket.com/
#ServerAdmin navin@flyoticket.com
DocumentRoot /var/www/html
Redirect / https://flyoticket.com
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
<VirtualHost *:443>
#ServerName https://flyoticket.com
DocumentRoot /var/www/html/
SSLEngine on
SSLCertificateFile /var/www/html/certnew/flyoticket.com.crt
SSLCertificateKeyFile /var/www/html/certnew/privatekey.crt
SSLCertificateChainFile /var/www/html/certnew/flyoticket.com.ca-bundle
</VirtualHost>
2. go to my certificates.
3. generate CRS on https://www.thesslstore.in/ssltools/csr-generator.php#results
4. save both certificate request and private key code in a file
5. validate domain with email or file upload.
6. after some time certificate will become active.
7. download files and upload them to a save folder on server.
8. upload privatekey file you saved in same folder.
and change 000-default.conf file or any virualhost file
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName flyoticket.com
#Redirect permanent / https://flyoticket.com/
#ServerAdmin navin@flyoticket.com
DocumentRoot /var/www/html
Redirect / https://flyoticket.com
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
<VirtualHost *:443>
#ServerName https://flyoticket.com
DocumentRoot /var/www/html/
SSLEngine on
SSLCertificateFile /var/www/html/certnew/flyoticket.com.crt
SSLCertificateKeyFile /var/www/html/certnew/privatekey.crt
SSLCertificateChainFile /var/www/html/certnew/flyoticket.com.ca-bundle
</VirtualHost>
Comments
Post a Comment