tencent cloud

피드백

Apache Mutual Authentication Configuration

마지막 업데이트 시간:2024-02-07 17:30:51

    Configuration Process for Apache HTTPS Mutual Authentication

    Caution:
    If your domain certificate has expired, follow the instructions below to reconfigure your domain certificate.
    This document uses the third-party developer domain name www.example.com as an example. The following two cases may arise:
    The third-party developer already has a certificate issued by an authoritative third party.
    The developer prepares the certificate www.example.com.crt issued by and the private key www.example.com.key assigned by the authoritative third party for www.example.com. Note that the certificate must be issued by an authoritative third party, such as Topway or GlobalSign.
    Chat provides the developer backend with a CA certificate TencentQQAuthCA.crt, which is used to verify the certificate of the requesting party (Chat).
    Perform configuration by referring to the Reference for Apache HTTPS Mutual Authentication Configuration below.
    The third-party developer sends an application to Chat, requesting Chat to issue a certificate for its domain name.
    The developer configures the webhook URL, such as www.example.com, in the console.
    Caution:
    When you register a domain, follow the rules below:
    Use English letters (a-z, case-insensitive), digits (0-9), and hyphen - only.
    Do not use spaces and special characters such as !, $, &, and ?.
    Hyphen - cannot appear consecutively, be registered independently, or be placed at the beginning or end.
    The length of the domain cannot exceed 63 characters.
    Chat issues the certificate www.example.com.crt and assigns the private key www.example.com.key to the developer with the domain name www.example.com. The developer can download the certificate from the console.
    Chat provides the developer backend with a CA certificate TencentQQAuthCA.crt, which is used to verify the certificate of the requesting party (Chat).
    Perform configuration by referring to the Reference for Apache HTTPS Mutual Authentication Configuration below.

    Reference for Apache HTTPS Mutual Authentication Configuration

    1. Copy www.example.com.crt, www.example.com.key, and TencentQQAuthCA.crt to the conf folder under the Apache installation directory.
    2. Modify the httpd.conf file. The reference configuration is as follows:
    SSLEngine on # Enables SSL
    SSLCertificateFile "/usr/local/apache2/conf/example.com.crt" # Certificate issued by Tencent to the third party
    SSLCertificateKeyFile "/usr/local/apache2/conf/example.com.key" # Private key paired with the certificate
    SSLCACertificateFile "/usr/local/apache2/conf/TencentQQAuthCA.crt" # CA certificate authenticated by Tencent
    SSLVerifyClient require # Verify the request source
    문의하기

    고객의 업무에 전용 서비스를 제공해드립니다.

    기술 지원

    더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

    연중무휴 24시간 전화 지원