Add simple certificate file check