Make it work with SSL