Fixed some issues rel. to SSL