handle ssl verify