Fixes some issues with SSL and production, adds ssl cert