add certificate check

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