Added correct certificate storage to trust to.
Fixed host name verification stuff.