How to secure Plesk and mail server with Let's Encrypt certificate via CLI?

Follow

Comments

4 comments

  • Avatar
    Ryan Johnson (Edited )
    plesk bin server_pref --get-hostname

    does not give the correct hostname. It gives some local-only host name for the server, like

    plesk-ubuntu-s-1vcpu-1gb-nyc1-01.local

    where the first part (before ".local") is the name of the resource in DigitalOcean's interface.

    0
    Comment actions Permalink
  • Avatar
    Mikhail Shport

    Hi Ryan,

    The mentioned command shows the information that is set in Plesk > Tools & Settings > Server Settings > Full hostname field.

    Sometimes, the hostname of the server itself does not change after it is set via the Plesk UI. In that case, it should be changed manually.

    You may take a look at this article for help: How to change or get the server hostname on Plesk server

    0
    Comment actions Permalink
  • Avatar
    Marco Marsala

    Getting this error:

    Curl failed: Peer certificate cannot be authenticated with given CA certificates
    Failed to parse response. Reason: Failed to read data from stream Process output:

    ERROR: No supported protocols supplied.

    Please update KB with this case.

    0
    Comment actions Permalink
  • Avatar
    Mar Spe

    command "plesk bin extension --exec letsencrypt cli.php -secure-plesk -m email@domain.tld -w /var/www/vhosts/default/htdocs -d hostname.domain.tld" responds with error message 
    'ERR [extension/letsencrypt] The execution of cli.php has failed with the following message: Option "c" requires a parameter.'

    Product version: Plesk Obsidian 18.0.48.0
    OS version: Ubuntu 18.04 x86_64

    Does this KB article require an update or am I doing somethin wrong?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request