I had the same issue and it turned out to be UTF-8 BOM.
In case you don't knoew what it means - it's 2 hidden characters at the beginning of a file that indicates it is encoded with UTF-8.
Notepad and other applications put it there by default.
To remove it:
If the file has only english characters (like certificates should have) - Open the file with notepad and click file>save as.
In the 'encoding' field select 'ANSI', and save the file.
Another option is to use HEX editor (I use xvi32 - free and good), and delete the first 2 characters.
I hope this helps someone...
Cheers,
Dan