Fix bug with SSL certificates