Issue with a ServiceProvider authenticating against testshib.org IdP

Alessandro Molina alessandro.molina at axant.it
Mon Oct 5 15:17:49 EDT 2015


Il 05/10/15 19:43, Kevin Foote ha scritto:
>> On Oct 5, 2015, at 1:12 PM, Krug, Jeff <Jeff.Krug at gtri.gatech.edu> wrote:
>>
>> ​The metadata posted has a single cert marked as a signing cert, so you do not have an encryption cert, so the error message looks correct.  Either update your metadata to include an encryption cert or do something else so that testshib does not try to encrypt assertions sent to you (assuming it has that level of flexibility).
>
> Thanks Jeff,
>
> More to Jeff’s point .. just remove the  <ns0:KeyDescriptor use="signing”> tags around your cert and re-upload your metadata.
> Please be sure to use the same file name though..
Uhm, thanks, looks like removing use="signing" made it work,
I'm pretty sure I tried that previously, but well now it works.

My final, working, ServiceProvider.xml is:

<?xml version='1.0' encoding='UTF-8'?>
<ns0:EntityDescriptor xmlns:ns0="urn:oasis:names:tc:SAML:2.0:metadata" 
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="urn:oasis:names:tc:SAML:metadata:attribute"
xmlns:ns2="urn:oasis:names:tc:SAML:2.0:assertion" 
xmlns:ns4="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       entityID="https://asdrubale.co.uk/">
     <ns0:Extensions 
xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport">
         <ns1:EntityAttributes>
             <ns2:Attribute Name="http://macedir.org/entity-category"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri">
                 <ns2:AttributeValue 
xsi:type="xs:string">http://www.geant.net/uri/dataprotection-code-of-conduct/v1
                 </ns2:AttributeValue>
             </ns2:Attribute>
         </ns1:EntityAttributes>
     </ns0:Extensions>
     <ns0:SPSSODescriptor AuthnRequestsSigned="false" 
WantAssertionsSigned="true"
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
         <ns0:KeyDescriptor>
             <ns4:KeyInfo>
                 <ns4:X509Data>
<ns4:X509Certificate>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fo>
         </ns0:KeyDescriptor>
         <ns0:SingleLogoutService 
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
Location="http://localhost:8087/slo/redirect"/>
         <ns0:SingleLogoutService 
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="http://localhost:8087/slo/post"/>
         <ns0:AssertionConsumerService 
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="http://localhost:8087/acs/post" index="1"/>
     </ns0:SPSSODescriptor>
</ns0:EntityDescriptor>


-- 
Alessandro Molina
Chief Technical Officer & Director of Operations

Axant s.n.c. - http://www.axant.it
Phone: +39 346 739 9923
Fax: +39 011 412 1756

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151005/ad0ebebb/attachment-0001.html>


More information about the users mailing list