Just note that many of them are described in the documentation:
SAML metadata .
To have a signed request, you need to add something like this (usually in sp.xml):
<SPSSODescriptor AuthnRequestsSigned="true" WantAssertionsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
The signature key will look something like this:
<KeyDescriptor use="signing"> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:X509Data> <ds:X509Certificate> MIIDWTC...CAkGgAwIBAgIEe+a+/uaSZCp5g2z+hRWRV+DyfQc9nO </ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </KeyDescriptor>
where MII ... is the public key.
As with @Stefan, it is much easier to use the library.
nzpcmad
source share