Note: The MDQ beta service was retired May 1, 2019 and currently . It is replaced with a "preview" (pre-production) MDQ service.
...
https://wiki.shibboleth.net/confluence/display/XSTJ2/xmlsectool+V2+Home
Caution: The state of MDQ server behavior is in flux, and downloading metadata from the URL below (step 2) with a browser may not provide usable results. Check that your results are XML and not HTML.
Procedure
Obtain and verify the InCommon Metadata Query Protocol signing certificate and verify the signing key fingerprint.
See https://spaces.at.internet2.edu/display/MDQ/MDQ+Signing+KeyFetch the UC Davis IdP metadata.
Code Block curl --silent --output ucdavis-metadata.xml \ http://mdq-preview.incommon.org/entities/urn%3Amace%3Aincommon%3Aucdavis.edu
Validate the XML signature. Note: several other ways to verify the digital signature on an XML document exist, as well, cf. Google search.
Code Block xmlsectool --verifySignature --inFile ucdavis-metadata.xml --certificate incommon-mdq.pem