Got SSL to work correctly