EOL replacement in certificate read

EOL are replaced in reading the certificate before the split.
Fixes error when certificate has windows EOL.
Merge branch 'Cert_fix'

EOL in certificate fix