fix to handle malformed certificates without hostname
5 files changed