Cannot apply a SSL certificate to Plesk

Created:

2016-12-12 03:46:22 UTC

Modified:

2017-08-08 13:37:06 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot apply a SSL certificate to Plesk

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

SSL certificate has not been applied to Plesk. An old certificate is shown in web browser.

Plesk refers to the correct file in its configuration:

# grep ssl_cert /etc/sw-cp-server/conf.d/plesk.conf
ssl_certificate /usr/local/psa/admin/conf/httpsd.pem;
ssl_certificate_key /usr/local/psa/admin/conf/httpsd.pem;

The file contains appropriate content:

# diff /usr/local/psa/admin/conf/httpsd.pem /usr/local/psa/var/certificates/cert-iwhT5U
#

Using openssl utility verify the certificate one more time:

# openssl x509 -in /usr/local/psa/admin/conf/httpsd.pem -text -noout
Validity
Not Before: Jun 22 06:49:04 2016 GMT
Not After : Jun 30 14:59:59 2019 GMT

sw-cp-server is not running:

# service sw-cp-server status
sw-cp-serverd has been stopped, but PID file still exists

However Plesk is working and ports are listening to by the service:

# netstat -aonpl | grep 8443
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 15862/sw-cp-server off (0.00/0/0)

Cause

sw-cp-server configuration is not reloaded because its processes are hung.

Resolution

  1. Find all hung processes:

    # ps auxwwff | grep sw-cp-server | grep -v grep
    root 15862 0.0 0.0 44956 144 ? Ss 2015 0:00 sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config
    496 15863 0.0 0.0 46248 2540 ? S 2015 3:15 \\_ sw-cp-server: worker process
  2. Kill the processes:

    # kill -9 15862 15863
  3. Restart sw-cp-server service:

    # service sw-cp-server restart
Have more questions? Submit a request
Please sign in to leave a comment.