Fixes unencrypted SSL