• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question vhost SSL certificate update from cli without restarting Apache

burnley

Regular Pleskian
Hi,

I need to basically create a certificate in Plesk being given the key and the bundle (CA+cert) and update the vhost's SSL configuration accordingly. At the moment I'm doing something like this:
/usr/local/psa/bin/certificate --create "www.${MYSITE} cert" \
-domain ${MYSITE} \
-key-file /etc/ssl/keys/www.${MYSITE}.key \
-cert-file /etc/ssl/certs/www.${MYSITE}.pem \
-cacert-file /etc/ssl/certs/www.${MYSITE}.pem
/usr/local/psa/bin/site -u ${MYSITE} -certificate-name "www.${MYSITE} cert"

... which is fine, but "site" command restarts Apache and this isn't something I want. I checked its help and it doesn't support the "-no-restart" switch.
How can I get this functionality in cli without restarting the webserver(s)? I just need to rebuild the configuration, then sending httpd and nginx services the graceful & reload signals respectively. Restarting a busy webserver isn't really an option.
Thanks.
 
Igor, thanks for this, I have. However, I'm still yet to find a way to update the site configuration without restarting/reloading the webserver(s). I need to be able to do bulk updates for an array of domains, but only reload apache & nginx once the job's done. Any hint will be greatly appreciated, I'm also willing to assist with beta testing, should this be implemented as a feature :)
 
Back
Top