Cannot find a cert or key directive - CentOS6


I’m trying to install a Let’s Encrypt SSL Certificate on a CentOS6 server with Plesk installed.

I can’t use Plesk extension because I’ve Plesk 12.0 and I can’t upgrade it.
So, after having installed certbot, I’ve used the following command:

sudo ./certbot-auto --apache

but I got this answer:

Cannot find a cert or key directive in /files/etc/httpd/conf/plesk.conf.d/vhosts/ VirtualHost was not modified
Unable to find cert and/or key directives


  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at
    /etc/letsencrypt/live/ Your
    cert will expire on 2017-09-18. To obtain a new or tweaked version
    of this certificate in the future, simply run certbot-auto again
    with the “certonly” option. To non-interactively renew all of
    your certificates, run “certbot-auto renew”

It seems that only a part of the certificate has been installed.
What should I do to completely install the certificate?

Thank you in advance.

You could manually configure it with the path to the certificate printed by certbot, as described here:

I can’t be sure Plesk will not overwrite that though. If you do that, be sure and change something in Plesk and see if your manual configuration changes stick, so you’re not surprised when you change something later.

Otherwise, you will have to manually add the certificate and private key in the Plesk control panel. You can cat the certificate and private key files and copy and paste them into Plesk, or copy them to your local computer via SFTP (please do not use insecure FTP for private keys!) and upload them to Plesk. You will need to do this again every 3 months when your certificate comes up for renewal.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.