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.
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.