HTTPS Settings Instruction
The open platform recommends that developers set the HTTPS callback interface address to ensure safety.
For developers who have purchased a cloud server and certificate from a cloud service provider (Tencent Cloud, Huawei Cloud, Alibaba Cloud, etc.), they can quickly configure it according to its operating instructions. Please refer to the cloud service provider's manual.
The following description of the general configuration steps is for developers' reference only.
I. SSL Certificate Application
Confirm the domain name that needs to apply for the certificate
Generate private key and CRS file
Execute the following command on the Linux machine to generate the private key.
Execute the following command on the Linux machine to generate the CSR file.
Noted: Information filled in here is for reference only. Developers may fill in according to their needs:
After executing the above command, the private key files server.key and certreq.csr CSR files can be generated in the current directory.
3. Submit the generated CSR file to a third-party certificate authority to apply for the server certificate of the corresponding domain name Please save the private key file carefully.
4. After the certificate application, the certificate authority will provide the content of the server certificate and two intermediate CA certificates. Please generate the server certificate according to the instructions of the certificate issuance machine. The server certificate file name is assumed to be server.pem.
5. Copy the generated private key file server.key and server certificate server.pem to the directory specified by the server to configure the HTTPS server.
II. HTTPS Server Configuration
Take Nginx as an example, and its HTTPS certificate configuration is as follows:
Frequently Asked Question:
Certificate trusted issue: Some SSL certificates issued in China are not trusted on Android. GeoTrust is recommended;
If the page has dynamic and static separation and the static resource uses an independent domain name, it is also necessary to apply for a certificate for the domain name;
The lower version of android does not support SNI extension. Due to this limitation, a server can only deploy one digital certificate;
Last updated
Was this helpful?