search
HomeWeChat AppletMini Program DevelopmentSSL certificate configuration for small program development to solve request fail problem

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
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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.