fix for invalid ssl certificates