I just got this going up on our servers at work.  You need to put the
path to the xmlsec executable in the $cmd variable.  The PHP code
actually runs the xmlsec program with a shell call.  It looks like
your server administrator gave you the path to the xmlsec libraries.
For me the correct path was: /usr/bin/xmlsec1.

Good luck!

On Jan 17, 10:01 pm, Ank891 <[EMAIL PROTECTED]> wrote:
> Hello I installed the SAMLTestTool PHP implementation on my webserver
> (http://www.ticos.org/SAMLTestTool/saml_demo.php) but when I try to
> generate the SAML response I get the following error: Unable to sign
> XML response. Please ensure that xmlsec is installed, and check your
> keys.
>
> I check with my server administrator and they confirmed that xmlsec is
> installed on /usr/local/lib where I see the following libraries:
>
> libxmlsec1.a                  libxmlsec1-openssl.so.1
> libxmlsec1.la                 libxmlsec1-openssl.so.1.2.11
> libxmlsec1-openssl.a          libxmlsec1.so
> libxmlsec1-openssl.la         libxmlsec1.so.1
> libxmlsec1-openssl.so         libxmlsec1.so.1.2.11
>
> I included this path in the PHP configuration.  But the error message
> remains.  I guess by this point is obvious that I'm not at all
> familiar with the use and configuration of xmlsec.
>
> On the process_response.php file there are a couple of lines that I
> think could be originating the error, but do to my lack of knowledge
> of xmlsec I'm unable to fix it.  The lines are:
>
>   // The path to xmlsec/xmlsec1 may need to be adjusted here.
>   // xmlsec supports many key types, which can be selected
>   // by using other command-line parameters.
>   $cmd = '/usr/local/lib/ sign --privkey-pem ' . $privKey .
>              ' --pubkey-der ' . $pubKey . ' --output ' . $tempFileName .
>              '.out ' . $tempFileName;
>   exec($cmd, $resp);
>   var_dump($resp);
>   unlink($tempFileName);
>
>   $xmlResult = @file_get_contents($tempFileName . '.out');
>   if (!$xmlResult) {
>     $error = 'Unable to sign XML response. Please ensure that xmlsec
> is ' .
>                  'installed, and check your keys.';
>     // uncomment the line below to print xmlsec error messages
>     // $error .= '<br><br>'.
>         //             str_replace('[br]', '<br>',
>         //                         htmlentities(implode($resp, '[br]')));
>     return false;
>   } else {
>     unlink($tempFileName . '.out');
>     return $xmlResult;
>   }
>
> If you have any advise please contact me.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to