Page 1 of 1

Reuse SSL certificate on different domain

Posted: Fri Jul 05, 2019 2:05 pm
by Fleuv
Hello is it possible to reuse an SSL certificate on different domain (what the user owns)?

Scenario
After setting up the domain example.com it seems necessary to set up subdomain as well e.g. subdomain.example.com. During the setup of the root domain (example.com) you've already created and linked an SSL certificate to the domain, so this domain got SSL support enabled. However you would like to reuse the SSL certificate of the root domain for the subdomain. What is the easiest way to get this done, preferably in automated manner?

Assumed process for reusing a SSL certificate for another domain
  • Add symbolic links for the subdomain to the root domain's ssl.* files from the /home/%USER%/conf/web directory, e.g: ssl.subdomain.example.com.* -> ssl.example.com.*
  • Generate the SSL vhost for the subdomain and at it to the the /home/%USER%/conf/web directory.
  • Append the path to the new vhost to the main entry point for vhosts, for nginx this is the /etc/nginx/conf.d/vesta.conf file.
  • Restart/reload the webserver.
  • Update the record for the subdomain in the vesta database to enable SSL support for the domain.

Re: Reuse SSL certificate on different domain

Posted: Fri Jul 05, 2019 2:36 pm
by grayfolk
SSL certificates assigned to domains, not to Vesta CP users - read https://www.verisign.com/en_US/website- ... ndex.xhtml. You can add domain alias to main domain and rebuild certificate.