If you need to read a certificate that you have produced from the command line, you can use this :
# openssl x509 -in cert.crt -text -noout
The certificate should have several lines in the data field, each ending with a carriage return char.
Under Linux, you can see the line ending character by :
# cat –A myservercert.pem