SAML-Toolkits / python3-saml

MIT License
704 stars 309 forks source link

'sp.crt' is not a valid value of the atomic type 'xs:base64Binary'. #337

Closed cgb37 closed 1 year ago

cgb37 commented 1 year ago

Errors validating the metadata: 2022-11-30T16:39:29.946475215Z Element '{http://www.w3.org/2000/09/xmldsig#}X509Certificate': 'sp.crt' is not a valid value of the atomic type 'xs:base64Binary'.

When we try to get the metadata to be used with our Idp by going to our domain/metadata we get the error above. We used https://www.samltool.com/self_signed_certs.php

cgb37 commented 1 year ago

this was caused by using sp.crt and sp.key as the values of "x509cert": "", "privateKey": "". Once we removed the values and placed those files in the certs directory the metadata url worked