Handle x.509 certs without BEGIN/END markers and/or newlines