add certificate check function

Signed-off-by: wangjun <junx.j.wang@intel.com>