How to allow HTTPS and configure SSL certificate on domain in Plesk which has Hosting Type set as Forwarding?

Comments

9 comments

  • Avatar
    Unknown User

    How to do step 4 via CLI? Executing the below command on a forwarding domain results in an error:

    plesk bin extension --exec letsencrypt cli.php -m email@domain.com -d domain.com
    [2023-04-26 11:15:13.829] 1320556:6448eba1c9fbd ERR [extension/letsencrypt] The execution of cli.php has failed with the following message:
    Set domain certificate failure: Can't create web hosting on Webspace. Please use "webspace" operator.
    The execution of cli.php has failed with the following message:
    Set domain certificate failure: Can't create web hosting on Webspace. Please use "webspace" operator.
    0
  • Avatar
    Permanently deleted user

    Hello,

    This behavior was confirmed as a bug with ID EXTLETSENC-1210. Thank you for bringing this to our attention! Until the bug is fixed, please consider issuing certificates for domains with Forwarding hosting type in Plesk interface, not via CLI.

    1
  • Avatar
    Unknown User

    Thanks @...!

    0
  • Avatar
    Francois Breton

    want it working on windows ;-)

    0
  • Avatar
    Permanently deleted user

    Hello,

    It is possible to secure domains with a Forwarding Hosting type on both Linux and Windows installations. Just make sure that the Common Challenge directory is enabled on the server.

    0
  • Avatar
    Francois Breton

    Thank you, I wasn't aware about the Common Challenge DIrectory.

    I tried with wildcard let's encrypt certificate (thinking it will use the DNS method) but no ; The authorization token is not available at blabla/.well-known/acme-challenge/ 

    Same thing for the other options (domain name, www, webmail, pop/smtp).

    With "plesk ext sslit --common-challenge-dir -info" I saw - Available: true - Enabled: true 

    I repair it with https://bobcares.com/blog/misconfiguration-of-the-common-challenge-directory/ and now it works !

    0
  • Avatar
    Unknown User

    Any update regarding EXTLETSENC-1210 ? Would love to be able to automate the deployment of Let's Encrypt for domains with Forwarding hosting type.

    0
  • Avatar
    Permanently deleted user

    Hello,

    There is no exact ETA for this bug for now. You may consider using the GUI solution from the article instead.

    Alternatively, create a subscription 'example.com', create the second domain on this subscription ('example.net'), and select 'Forwarding' hosting type for it during creation. It will be possible to secure this second domain with the below command:

    plesk bin extension --exec letsencrypt cli.php -m jdoe@example.net -d example.net
    0
  • Avatar
    Mendel Nemanov (Edited )

    Regarding the warning that this works only with NGINX server.

    I can confirm that at least on windows it works with IIS.

    The Common Challenge directory must be enabled.

    0

Please sign in to leave a comment.

Have more questions? Submit a request