Configure SSL Certificate "Pem_read_bio:bad end Line" Problem resolution

Source: Internet
Author: User
Tags ssl certificate to domain
Old left there to see netizens mentioned in the reference "take the SSL for free tool 3 minutes to get let's encrypt certificate" article tutorial application and configure SSL Web site security certificate when mentioned in the configuration to the VPS Web environment when there are error prompts. Because in this article I was introduced to use to the Cpanel Panel virtual host environment, so according to the production of 3 certificate files do not need to modify the file.
However, if we want to use the server, we need to merge the privacy Key, CA_BUNDLE.CRT, and certificate.crt three certificate files. Here, if we do not merge correctly, this error message will appear:
The code is as follows Copy Code
Nginx: [Emerg] Pem_read_bio_x509_aux ("/ROOT/DOMAIN.CRT") failed (Ssl:error:0906d066:pem Routines:PEM_read_bio:bad End line)

This problem occurs because we have a separator problem when merging CERTIFICATE.CRT and CA_BUNDLE.CRT to domain.crt files.

We can see the end and the beginning of the separator overlap caused, so we directly in the arrow position, to a carriage return split blank line can be.
Finally, we will not have the error prompt when we restart the nginx.

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.