I once had to change my CER file from "UTF-16 LE BOM" to "UTF-8". Im not sure how this applies to you directly, but thats basically the error i got from openssl when working with certificates with the wrong text encoding.