Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary and solution of common problems in developing WeChat Mini Programs's HTTPS error report

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Summary and solution of common problems in developing WeChat Mini Programs's HTTPS error report

At the beginning of this year, WeChat Mini Programs officially launched, in the light of Wechat, WeChat Mini Programs has been widely known. As a result, more and more developers devote themselves to WeChat Mini Programs's development work. In the process of development, there are always all kinds of situations. Due to WeChat Mini Programs's requirement that you must use HTTPS requests, developers who deploy HTTPS websites for the first time are more or less confused about which SSL certificates to choose. Many developers should have encountered all kinds of error problems caused by HTTPS. The following is to sort out the reasons for the errors in Mini Program deployment HTTPS and the corresponding solutions.

In the course of WeChat Mini Programs's internal testing last year, almost every developer encountered the following error in the process of practice:

Because wx.request initiates a https request, and most of the reads by WeChat Mini Programs request the API API, you must have a https protocol to use it, otherwise it will indicate that the domain name is invalid. This means that WeChat Mini Programs is forced to use the SSL certificate, otherwise it cannot be run. So WeChat Mini Programs's HTTPS error report with the daily transport protocol error is the same.

Case 1: "this certificate cannot be verified to a trusted certificate authority" or something like "the security certificate is issued by a company you have not selected to trust".

Reason: this may be due to the fact that the certificate is not on the browser's trusted list or that the authority is not trusted.

Solution: the certificate can be installed in the browser's Trust list. Steps:

Browser options → content tab → certificate-→ import, complete.

Prior to this, when purchasing a SSL certificate, you must choose a CA institution that has passed WEBTRUST international certification and a brand of SSL certificate recognized by an international organization.

Case 2: visit the website to see that the SSL certificate is not the one that was originally deployed.

Reason: this may be due to confusion on the same IP and port on the server. Only one certificate is installed, and the SSL protocol allows only one certificate to be returned on one IP port.

Solution: by assigning different port numbers or different IP addresses.

Case 3: the website SSL certificate has expired or is not yet valid.

Reason: if the SSL certificate expires or is not valid, then the certificate is an invalid certificate.

Solution: in this case, you can check the valid start and end date identified by the certificate information to determine whether the certificate is within the validity period. If so, check whether the computer date is correct. If not, contact your customer service personnel as soon as possible.

It can be seen that by choosing the correct SSL certificate, authoritative CA institutions can easily avoid WeChat Mini Programs's HTTPS error report.

Global trusted CA institutions

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report