You have garbage characters at the end of lines on your cert...
"... :bad end line

em_lib.c:746"
Most likely causes:
1) You copies cert from/to windows box
2) Your file is not in PEM format
3) Your file is truncated or other wise corrupt
re #3: File should begin with a "--- begin certificate ---" line and end with an "--- end certificate ---" line (dashes and case may vary).