Configure SSL certificate under Nginx, default profile, normal access in PC Browser, unable to authenticate a nginx configuration mode in Mobile browser
SSL on;
Ssl_certificate /etc/nginx/ssl/certificate.crt;
Ssl_certificate_key /etc/nginx/ssl/private.key;
Two Certificate documents:
A total of three default certificate files: generated by free certificate website https://www.sslforfree.com/
Ca_bundle.crt
Certificate.crt
Private.key three question:
Certificate is not intermediate certificate, does not contain root certificate, mobile browser can not be authenticated four solution: 1 generate root certificate based on intermediate certificate
Intermediate certificate Download Tool: https://www.myssl.cn/tools/downloadchain.html
Download Intermediate Certificate 2 from the contents of Certificate.crt re-edit a server certificate
The contents are: Can not have spaces and blank lines, through the VI tool to see whether there are illegal operators or carriage return space, etc.
Server Certificate CERTIFICATE.CRT
CA certificate Ca_bundle.crt
Root Certificate: The intermediate certificate that was downloaded from the server (intermediate certificate that I used, also successful access)
3 nginx configuration file, point to this new CRT file