While working on WeChat Mini Programs recently, I ran into an issue: the TLS version must be greater than 1.2
Here is the solution:
Everyone knows that WeChat Mini Programs only support HTTPS, so I won’t go into the SSL configuration details here. Below, I’ll use my Nginx setup as an example to show how to fix the TLS version issue:
vi /usr/local/nginx/conf/vhost/www.conf
Change
ssl_protocols SSLv3 TLSv1;
to:
ssl_protocols SSLv3 TLSv1.2;
As shown in the image below, save the file and restart Nginx to apply the fix: