This document describes how to validate a domain when you apply for a certificate or add a domain in the SSL Certificate Service console and the domain validation mode is file validation.
During file validation, pay attention to the following:
- Due to changes of the policies for SSL certificate domain validation, Tencent Cloud discontinued the file validation mode for wildcard certificates on November 21, 2021. For more information, see Domain Ownership Validation Policy Update.
- If the domain that you apply for is a primary domain, www must also be validated. For example, if the domain applied for is
www.tencent.commust also be validated.
- If the domain that you apply for contains www, the domain name following www must also be validated, regardless of the domain levels. For example, if the target domain is
a.tencent.commust also be validated.
- If the domain that you apply for does not contain www and is not a primary domain, only the current domain needs to be validated. For example, if the target domain is
cloud.tencent.comneeds to be validated.
If your DNS Service Provider is Tencent Cloud, for how to point the domain to your server, see A Record.
- The website root directory refers to the folder where you store the website programs on the server. Its name may be
- Ensure that the website port is set to 80 or 443.
C:/inetpub/wwwroot. You can create a file as shown in the following table in the
|File Directory||File Name||File Content|
|/.well-known/pki-validation||The file content shown on the validation page. Example: A32CF****7EEtrust-provider.comTT**bu6||201908060**alzeo|
.well-knownfolder, open a command prompt window and execute the command
mkdir .well-knownto create it. See the following figure.
- Both HTTP and HTTPS are supported, and either can be accessed.
- File verification does not support any redirection. Instead, it directly returns the status code 200 and file content.
- For a domain name starting with "www", such as
www.a.tencent.com, file validation is required for the domain name itself as well as