[Minor] added certificate validation to VersionQuery