Signing is performed using private keys - not public keys.
So, if a SAML request needs to be signed, SP must use its private key for it. In addition, a certificate containing the SP public key must be provided by IdP to verify the signature.
The reason IdP is giving you its certificate is the SP for checking signed SAML responses sent by IdP.
source
share