Dear Sir,
I am trying simplesamlphp-1.5 to build my SP for SSO. But there is a
problem stoped me. My SP return "Unable to validate Signature" after I
authorizing from Feide OpenIdP(guest user).
I built my SP by tutorial -- "Setting up simpleSAMLphp as a service
provider" with a fake domain
sp.navi.com.
My SP configuration
'default-sp' => array(
'saml:SP',
'entityID' => '
https://sp.navi.com',
'idp' => NULL
'discoURL' => NULL,
'privatekey' => 'saml.pem',
'certificate' => 'saml.crt',
)
and remove idp is leveraged build in idp:
https://openidp.feide.no
Here is my saml AuthnRequest
---------------------------------
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
ID="_1a1604c93181a3388539342999a4544721e9b85caf" Version="2.0"
IssueInstant="2009-12-14T02:49:35Z" Destination="https://
openidp.feide.no/simplesaml/saml2/idp/SSOService.php"
AssertionConsumerServiceURL="
https://sp.navi.com/simplesaml_sp/
module.php/saml/sp/saml2-acs.php/default-sp"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST">
<saml:Issuer>
https://sp.navi.com</saml:Issuer>
<samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-
format:transient" AllowCreate="true"/>
</samlp:AuthnRequest>
---------------------------------
I also add a file metadata/saml20-sp-hosted.php which is not in
tutorial.(it cased a problem "Could not find any default metadata
entities in set [saml20-sp-hosted] for host [
sp.navi.com :
sp.navi.com/
simplesaml_sp]", so I added it to resolve)
And error msg from my SP
---------------------------------
Unable to validate Signature
0: /data/simplesamlphp_sp/lib/SAML2/Utils.php:100
(SAML2_Utils::validateSignature)
1: /data/simplesamlphp_sp/lib/SAML2/Assertion.php:490
(SAML2_Assertion::validate)
2: /data/simplesamlphp_sp/modules/saml2/lib/Message.php:193
(sspmod_saml2_Message::checkSign)
3: /data/simplesamlphp_sp/modules/saml2/lib/Message.php:679
(sspmod_saml2_Message::processResponse)
4: /data/simplesamlphp_sp/www/saml2/sp/AssertionConsumerService.php:
107 (N/A)
---------------------------------
I traced the problem and found out it failed at verifyOpenSSL in
validateSignature.
I have no idea on this failure. :(
Could you kindly help me on this problem?
Thank you very much.
Regards,
Navi