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.