[Nginx] Fix error SSL PEM routines:PEM_read_bio:bad end line

84

When you configure SSL Certificate on Web Server Nginx and your SSL Intermediate Certificate bundle has something strange to make appear an error when we restart Nginx web server like below :

Ok, you encountered that issue and what is causing of it.

Reason cause “PEM routines:PEM_read_bio:bad end line”

– No line break has been created between each start and end points of Intermediate Certificate within the file certificate bundle, i.e.

 
– This can cause some serious issues because it cannot be interpreted, as you might have noticed.

How to Fix SSL PEM routines:PEM_read_bio:bad end line error

To fix this issue, fire up your text editor of choice and create a line break between the two files, i.e.


Tip:
Count five hyphens at the start and end of the text.

You can now save the file and the error should be fixed!

Clip Youtube Demo

LEAVE A REPLY