Add the check routine of certificate