This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How to install SSL certificate on a sub-domain
#1
How to install SSL certificate on a sub-domain
Hi ,

I purchased a ssl certificate from godaddy and i would like to install the certificate on following domain format i.e

Quote:subdomain.domain.com


kindly guide me how can i install the certificate. Also how can i update how certificate after a year
Reply
Thanks given by:
#2
RE: How to install SSL certificate on a sub-domain
You can follow this instructions at http://docs.sentora.org/?node=103
You will have to change the location of the certificate to where you have it located on your server.
I use WinSCP to browse through / edit files.

Steps:
Changing Sentora port:
On Sentora Panel go to Admin -> Module Admin -> Apache Config > Override a Virtualhost [Select VHost] ->
Tick Port Override.
Forward Port 80 to Overriden Port: 443
Custom Entry:

(Don't forget to replace domain.com with your domain's URL below:)

SSLEngine on

SSLProtocol ALL -SSLv2 -SSLv3

SSLHonorCipherOrder On

SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS

SSLCertificateFile /etc/letsencrypt/live/domain.com/cert.pem

SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem

SSLCertificateChainFile /etc/letsencrypt/live/domain.com/chain.pem

# Keeping bellow for future upgrades.

# Requires Apache >= 2.4

SSLCompression off




Save Vhost.

Wait on daemon update or run it manually and restart apache.
NOTICE: For CentOS replace apache2 with httpd
php -q /etc/sentora/panel/bin/daemon.php

service apache2 restart

Your domain should now be secured by SSL.
You can test it here: https://www.ssllabs.com/ssltest/
Reply
Thanks given by: TGates
#3
RE: How to install SSL certificate on a sub-domain
Hi

This is are the list of files available in the zip which received in my email

AddTrustExternalCARoot.crt
COMODORSAAddTrustCA.crt
COMODORSADomainValidationSecureServerCA.crt
subdomain_domain_com.crt

replaced my subdomain name for last crt file

how should i need to replace in the above code
Reply
Thanks given by:
#4
RE: How to install SSL certificate on a sub-domain
(02-16-2018, 05:25 PM)sathish2009 Wrote: Hi

This is are the list of files available in the zip which received in my email

AddTrustExternalCARoot.crt
COMODORSAAddTrustCA.crt
COMODORSADomainValidationSecureServerCA.crt
subdomain_domain_com.crt

replaced my subdomain name for last crt file

how should i need to replace in the above code

Hi, have you not considered LetsEncrypt?

There's a great guide on how to do it for Sentora, it's very easy and it's free: 

http://docs.sentora.org/?node=103

I use this extensively across my server, pretty much for all domains and subdomains.. The main thing is, the primary domain (for example domain.com) requires you to apply a certificate to both the TLD and the "www." part. as seen in the guide.

To explain, here's a breakdown:

Code:
./letsencrypt-auto certonly --standalone -d domain.com -d www.domain.com

    ^ The command to get the certificate      ^ the TLD      ^ the WWW.

if you want to encrypt just a subdomain (for example, abc.domain.com), the command would be:

Code:
./letsencrypt-auto certonly --standalone -d abc.domain.com
   ^ The command to get the certificate       ^ the subdomain

Be careful to follow the rest of the instructions very carefully from the guide, otherwise you'll kill your VHOSTS file, causing Apache to not start.

Hope this helps!
Reply
Thanks given by: TGates
#5
RE: How to install SSL certificate on a sub-domain
Install SSL Wildcard FREE from Let's Encrypt for all SubDomain. Follow instruction for your VPS: https://tophostcoupon.com/how-to-install...ux-server/
Reply
Thanks given by: Chloe James


Possibly Related Threads…
Thread Author Replies Views Last Post
apt-get install mod_ssl ERROR CMs222 9 25 ,617 11-11-2022, 09:14 PM
Last Post: zustudios
Public_html Inside Domain/Subdomain zHostingSolutions 2 4 ,102 07-23-2021, 09:57 AM
Last Post: Nigel
https without certificate redirects to panel iraqiboy90 10 19 ,399 02-28-2021, 11:20 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 1 Guest(s)