Fast HTTPS configuration

Updated at:

If you have linked a domain name to your Simple Application Server, you can enable HTTPS to secure access to your website. HTTPS protects data in transit through encryption and identity authentication. This topic describes how to use the fast HTTPS configuration feature in the Simple Application Server console.

Limitations

The fast HTTPS configuration feature is available only for Simple Application Server instances created from the following application images: WordPress 6.7.1, WooCommerce 9.4.3, and LNMP 7.4.

For instances created from other application images, you must configure HTTPS manually. For instructions, see Manually deploy a certificate.

Prerequisites

  • The Simple Application Server instance is in the Running state.

  • The Command Assistant for the Simple Application Server instance is in the Online state.

    The Command Assistant Agent is installed by default on Simple Application Server instances. If you have manually uninstalled the agent, you must reinstall it. For instructions, see Install the Command Assistant Agent.

Procedure

  1. To go to the domain name details page, use one of the following methods:

    Domains page

    1. Go to the Domain Name page in the Simple Application Server console.

    2. Click the target domain name.

    Instance details page

    1. Go to the Servers page in the Simple Application Server console.

    2. On the server card, click the instance ID.

    3. Click the Domain Name tab, and then click the target domain name.

  2. In the list of host records, click Configure HTTPS in the Actions column.

    This feature is supported only by Simple Application Server instances created from the application images: WordPress 6.7.1, WooCommerce 9.4.3, and LNMP 7.4. If the Configure HTTPS option is grayed out, you can hover your mouse over Configure HTTPS and follow the instructions in the tooltip.

  3. In the Configure HTTPS dialog box, select a certificate and click OK.

    You can only select certificates that are in the Issued state in the Alibaba Cloud SSL Certificates console.

  4. In the HTTPS Configuration column for the host record, check the configuration status.

    If the status is Configured., HTTPS is successfully enabled.

    Note

    You can hover the pointer over Configured to view the certificate ID and expiration date.

  5. Verify the result.

    After you enable HTTPS, open a web browser and enter https://yourdomain to access your website. If a lock icon (image) appears in the address bar, the certificate is installed successfully.

    Note

    For WordPress 6.7.1, you must also log in to the WordPress admin panel to bind the domain name. For more information, see Step 3: Verify the SSL certificate.

    In Chrome version 117 and later, the lock icon (image) has been moved to the tune icon (image) menu, as shown in the following figure.

    After clicking the icon in the address bar, the security panel shows that the Connection is secure (with a lock icon). This indicates that the HTTPS certificate is correctly configured.

FAQ

Q1: How do I upload a third-party certificate?

A1: Follow these steps:

  1. In the Apply for Certificate dialog box, follow the prompts to upload the third-party certificate. For more information about third-party certificates, see Upload, synchronize, and share SSL certificates.

    Enter a Certificate Name, upload the certificate file (typically with a .crt or .pem extension) and the private key file (typically with a .key extension), and then click Create Certificate.

  2. Click Create Certificate.

Q2: How do I apply for a free certificate?

A2: Follow these steps:

  1. In the Apply for Certificate dialog box, set Certificate Source to Apply for Free Certificate.

  2. Purchase a free certificate.

    If the console indicates that your certificate quota is insufficient, click Purchase to go to the SSL Certificates console and purchase a free certificate. For more information, see Purchase a personal test certificate.

  3. Create the certificate.

    1. Close and reopen the Apply for Certificate dialog box, and then enter your name, email address, and phone number as prompted.

      The dialog box also contains fields for Domain Name, Certificate Source (select Apply for Free Certificate), Certificate Type (personal test certificate (Free)), and Domain Verification Method (DNS verification). After you fill in the information, click Create Certificate.

    2. Click Create Certificate.

Related topics