leuzimba / simplesamlphp

Automatically exported from code.google.com/p/simplesamlphp
Other
0 stars 0 forks source link

Simplesamlphp - idp deployed and configured #595

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 

I have done a new deployment based on the documents 
http://simplesamlphp.org/docs/stable/simplesamlphp-idp

When I have deployed 
• Identity provider on my local system on http://idp.example.com/
• Service provider: www.springcm.com 

The following is Springcm configuration obtained from simplesamlphp IDP 
metadata. 
Certificate from idp (on local) was generated and uploaded on the springcm.

Issuer : 'http://idp.example.com/saml2/idp/metadata.php',
Service Provider (SP) Initiated Endpoint:  
http://idp.example.com/saml2/idp/SSOService.php

Please confirm the above URLs. 

Please find the 2 bugs faced: 
1) Once configured and deployed successfully, then hitting the following URL in 
the browser

http://idp.example.com/saml2/idp/SSOService.php?spentityid=https://www.springcm.
com/atlas/sso/Prod

You get just in time exception and then Microsoft Visual Studio opens up with 
the httpd error. 

Now when I started the following url in another browser: 
https://na11.springcm.com/atlas/Dashboard/Dashboard.aspx?aid=14165

This directly redirects to following url of my local machine , where I have 
configured my IDP, which is my case is http://idp.example.com. This then 
displays the following error message, how to resolve?

Warning: openssl_verify() [function.openssl-verify]: Don't know how to get 
public key from this private key in 
C:\xampp\htdocs\simplesamlphp\lib\xmlseclibs.php on line 514 
Call Stack 
# Time Memory Function Location 
1 0.0006 350072 {main}( ) ..\SSOService.php:0 
2 0.0271 2245336 sspmod_saml_IdP_SAML2::receiveAuthnRequest( ) 
..\SSOService.php:19 
3 0.0446 3644568 sspmod_saml_Message::validateMessage( ) ..\SAML2.php:298 
4 0.0447 3644568 sspmod_saml_Message::checkSign( ) ..\Message.php:242 
5 0.0452 3653024 SAML2_Message->validate( ) ..\Message.php:185 
6 0.0452 3653176 call_user_func ( ) ..\Message.php:210 
7 0.0453 3653192 SAML2_Utils::validateSignature( ) ..\Message.php:210 
8 0.0454 3653928 XMLSecurityDSig->verify( ) ..\Utils.php:148 
9 0.0454 3655232 XMLSecurityKey->verifySignature( ) ..\xmlseclibs.php:1213 
10 0.0454 3655232 XMLSecurityKey->verifyOpenSSL( ) ..\xmlseclibs.php:550 
11 0.0455 3655296 openssl_verify ( ) ..\xmlseclibs.php:514 

( ! ) Warning: openssl_verify() [function.openssl-verify]: supplied key param 
cannot be coerced into a public key in 
C:\xampp\htdocs\simplesamlphp\lib\xmlseclibs.php on line 514 
Call Stack 
# Time Memory Function Location 
1 0.0006 350072 {main}( ) ..\SSOService.php:0 
2 0.0271 2245336 sspmod_saml_IdP_SAML2::receiveAuthnRequest( ) 
..\SSOService.php:19 
3 0.0446 3644568 sspmod_saml_Message::validateMessage( ) ..\SAML2.php:298 
4 0.0447 3644568 sspmod_saml_Message::checkSign( ) ..\Message.php:242 
5 0.0452 3653024 SAML2_Message->validate( ) ..\Message.php:185 
6 0.0452 3653176 call_user_func ( ) ..\Message.php:210 
7 0.0453 3653192 SAML2_Utils::validateSignature( ) ..\Message.php:210 
8 0.0454 3653928 XMLSecurityDSig->verify( ) ..\Utils.php:148 
9 0.0454 3655232 XMLSecurityKey->verifySignature( ) ..\xmlseclibs.php:1213 
10 0.0454 3655232 XMLSecurityKey->verifyOpenSSL( ) ..\xmlseclibs.php:550 
11 0.0455 3655296 openssl_verify ( ) ..\xmlseclibs.php:514 

( ! ) Warning: Cannot modify header information - headers already sent by 
(output started at C:\xampp\htdocs\simplesamlphp\lib\xmlseclibs.php:514) in 
C:\xampp\htdocs\simplesamlphp\lib\SimpleSAML\Error\Error.php on line 156 
Call Stack 
# Time Memory Function Location 
1 11.1336 4018864 SimpleSAML_exception_handler( ) ..\_include.php:0 
2 11.1945 4104840 SimpleSAML_Error_Error->show( ) ..\_include.php:38 
3 11.1945 4104840 SimpleSAML_Error_Error->setHTTPCode( ) ..\Error.php:212 
4 11.1945 4104952 header ( ) ..\Error.php:156 

( ! ) Warning: Cannot modify header information - headers already sent by 
(output started at C:\xampp\htdocs\simplesamlphp\lib\xmlseclibs.php:514) in 
C:\xampp\htdocs\simplesamlphp\templates\includes\header.php on line 40 
Call Stack 
# Time Memory Function Location 
1 11.1336 4018864 SimpleSAML_exception_handler( ) ..\_include.php:0 
2 11.1945 4104840 SimpleSAML_Error_Error->show( ) ..\_include.php:38 
3 13.7808 4288304 SimpleSAML_XHTML_Template->show( ) ..\Error.php:253 
4 13.8324 4316576 require( 'C:\xampp\htdocs\simplesamlphp\templates\error.php' 
) ..\Template.php:582 
5 13.9023 4669688 SimpleSAML_XHTML_Template->includeAtTemplateBase( ) 
..\error.php:8 
6 13.9223 4722728 include( 
'C:\xampp\htdocs\simplesamlphp\templates\includes\header.php' ) 
..\Template.php:224 
7 13.9223 4724624 header ( ) ..\header.php:40 

Unhandled exception
Unhandled exception
An unhandled exception was thrown. 
If you report this error, please also report this tracking number which makes 
it possible to locate your session in the logs available to the system 
administrator: f261786976 
Debug information
The debug information below may be of interest to the administrator / help desk:

SimpleSAML_Error_Error: UNHANDLEDEXCEPTION

Backtrace:
1 C:\xampp\htdocs\simplesamlphp\www\_include.php:37 
(SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: Exception: Unable to validate Signature
Backtrace:
6 C:\xampp\htdocs\simplesamlphp\lib\SAML2\Utils.php:149 
(SAML2_Utils::validateSignature)
5 [builtin] (call_user_func)
4 C:\xampp\htdocs\simplesamlphp\lib\SAML2\Message.php:210 
(SAML2_Message::validate)
3 C:\xampp\htdocs\simplesamlphp\modules\saml\lib\Message.php:185 
(sspmod_saml_Message::checkSign)
2 C:\xampp\htdocs\simplesamlphp\modules\saml\lib\Message.php:242 
(sspmod_saml_Message::validateMessage)
1 C:\xampp\htdocs\simplesamlphp\modules\saml\lib\IdP\SAML2.php:298 
(sspmod_saml_IdP_SAML2::receiveAuthnRequest)
0 C:\xampp\htdocs\simplesamlphp\www\saml2\idp\SSOService.php:19 (N/A)
Report errors
Optionally enter your email address, for the administrators to be able contact 
you for further questions about your issue:

E-mail address: 

Explain what you did when this error occurred... 

Original issue reported on code.google.com by shrutisg...@gmail.com on 22 Nov 2013 at 3:40

GoogleCodeExporter commented 8 years ago
Hi,

This is an issue tracker, not a support forum. Please post your questions to 
the simpleSAMLphp mailing list.

Original comment by jaim...@gmail.com on 23 Nov 2013 at 2:27

GoogleCodeExporter commented 8 years ago

Original comment by jaim...@gmail.com on 27 Nov 2013 at 12:53

GoogleCodeExporter commented 8 years ago

Original comment by jaim...@gmail.com on 27 Nov 2013 at 12:53