We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Reuse SSL certificate on different domain
Reuse SSL certificate on different domain
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
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.
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Reuse SSL certificate on different domain
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.