Problem: Unified SSL certificate error – SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line

Cause:

The server had a unified file to hold the SSL certificate and intermediate certificate. But, on restarting the webserver, the above error showed up.
The ‘end of the line’ was indeed good. The problem was due to a missing line break between the certificates.

Solution:

Replace,
-----END CERTIFICATE----------BEGIN CERTIFICATE-----
With,

—–END CERTIFICATE—–
—–BEGIN CERTIFICATE—–

Note that there should be 5 hyphens at the beginning and end, of the BEGIN/END tags!

Get new insights right to your inbox

How can our experts help you?

Schedule your consultation

You may also like

  • By admin
  • in Tech Corner

How to Create an Amazon ECS Cluster? 

  • May 25, 2022 .
  • 5 min min
Read More
  • By admin
  • in Tech Corner

Features and Operations of Amazon EBS (Elastic Block Store)

  • Apr 21, 2022 .
  • 5 min min
Read More

Be in the know

Techno tips served hot! Subscribe now and stay atop.