danbars
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
openssl x509 certificate problems
in PHP Coding Help
Posted
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