tools/ndns-daemon: fix bug that validator cannot fetch certificate

refs #2206

Change-Id: I10c69d95e6a5fd020038211ce419763fd62afcb3