SSL connection with invalid certificate detected