Attempt to make it work with SSL