Fix certificate error on mac

This fix should be validated on windows and linux
Merge pull request #3 from dersteppenwolf/master

Fix certificate error on mac