Many SAML 2.0 providers require metadata XML files to be signed digitally to guarantee that the file is genuine. Add a digital signature to ensure that other providers can verify that the metadata XML file came from your SAML 2.0 provider.
For other providers to verify the digital signature, they must have access to the public-key certificate from the signing key pair.