Certificate errors when using application

This has been merged to master branch now.

See the pull request for the screenshot where it is fixed