Nginx Configure SSL Certificates (intermediate certificates)

Source: Internet
Author: User
Tags ssl certificate

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.