PEM routines:PEM_read_bio:bad end line

I had the same problem as sunnycomes and his comment was correct. I was lacking a ‘-‘ at the very end of the last line of the file. Before I had:

-----END CERTIFICATE----

and changing it to:

-----END CERTIFICATE-----

fixed it. I’ve learnt that I have to be careful when copying certificates text from a terminal.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)