修正证书认证匹配算法.

Signed-off-by: Jack <jack.wgm@gmail.com>