Home WeChat Applet Mini Program Development SSL certificate configuration for small program development to solve request fail problem

SSL certificate configuration for small program development to solve request fail problem

Feb 28, 2017 am 11:39 AM

WeChat applet forces all interfaces to use https for access. However, after the server is configured with a certificate, it can be accessed normally using the IDE, but errors are always reported when using a real machine (both ios and andriod). Display request fail failed to complete the operation. KCFErrorDomainCFNetwork Error 301.

 小程序开发之SSL证书配置,解决request fail问题

Solution

1. Geotrust first check your site. Solve some common problems, such as the intermediate certificate is not installed, etc.
2. WeChat supports, and only supports ssl_protocols TLSv1 TLSv1.1 TLSv1.2; therefore, you need to delete these protocols SSL V2 and SSL V3
3. Encryption method ssl_ciphers AES128+EECDH:AES128+EDH :!aNULL;

After solving it

After configuring, check it and it will look like this. There will also be BEAST info, which does not need to be processed.

 小程序开发之SSL证书配置,解决request fail问题

The reference given by Tencent is https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=10_4

But Tencent is such a cheater, ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; The punctuation marks are in Chinese, so you know.

If nginx is configured using the above configuration file, it will be fine. If you use iis, you will find a method to modify the registry through google. After modifying the registry, restart the server and it will be fine.


For more SSL certificate configuration for small program development and solving the request fail problem, please pay attention to the PHP Chinese website for related articles!


Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)