...
Code Block | ||
---|---|---|
| ||
$ MD_LOCATION=http://md.incommon.org/InCommon/InCommon-metadata.xml $ MD_PATH=/path/totmp/InCommon-metadata.xml $ /usr/bin/curl --silent http://md.incommon.org/InCommon/InCommon-metadata.xml$MD_LOCATION > $MD_PATH $ ./xmlsectool.sh --verifySignature --signatureRequired \ --certificate $CERT$MD_CERT_PATH --inFile $MD_PATH INFO XmlSecTool - Reading XML document from file '/tmp/InCommon-metadata.xml' INFO XmlSecTool - XML document parsed and is well-formed. INFO XmlSecTool - XML document signature verified. |
You may also want to schema validate the metadata:
Code Block | ||
---|---|---|
| ||
$ ./xmlsectool.sh --validateSchema \
--schemaDirectory $SCHEMA_DIR --inFile $MD_PATH
INFO XmlSecTool - Reading XML document from file '/tmp/InCommon-metadata.xml'
INFO XmlSecTool - XML document parsed and is well-formed.
INFO XmlSecTool - XML document is schema valid
|
For convenience, we provide a set of (suitably modified) schema files that permit offline schema validation.
...