check certificate when task is local