fixed error when ssl CN is array