Thanks Julian and XoCinek,

I tried both suggestions but none worked.  I tried changing the output
to get any related error codes and this is what came out in the
screen:   (any advise?)

array(29) { [0]=> string(141)
"func=xmlSecOpenSSLX509StoreInitialize:file=x509vfy.c:line=651:obj=x509-
store:subj=X509_LOOKUP_add_dir:error=4:crypto library function
failed:" [1]=> string(130)
"func=xmlSecKeyDataStoreCreate:file=keysdata.c:line=1328:obj=x509-
store:subj=id->initialize:error=1:xmlsec library function
failed:" [2]=> string(159)
"func=xmlSecOpenSSLKeysMngrInit:file=crypto.c:line=313:obj=unknown:subj=xmlSecKeyDataStoreCreate:error=1:xmlsec
library function failed:xmlSecOpenSSLX509StoreId" [3]=> string(144)
"func=xmlSecOpenSSLAppDefaultKeysMngrInit:file=app.c:line=1270:obj=unknown:subj=xmlSecOpenSSLKeysMngrInit:error=1:xmlsec
library function failed:" [4]=> string(41) "Error: failed to
initialize keys manager." [5]=> string(35) "Error: keys manager
creation failed" [6]=> string(45) "Usage: xmlsec [] []" [7]=>
string(0) "" [8]=> string(68) "xmlsec is a command line tool for
signing, verifying, encrypting and" [9]=> string(59) "decrypting XML
documents. The allowed values are:" [10]=> string(53) " --help display
this help information and exit" [11]=> string(73) " --help-all display
help information for all commands/options and exit" [12]=> string(66)
" --help- display help information for command and exit" [13]=>
string(49) " --version print version information and exit" [14]=>
string(41) " --keys keys XML file manipulation" [15]=> string(48) " --
sign sign data and output XML document" [16]=> string(37) " --verify
verify signed document" [17]=> string(70) " --sign-tmpl create and
sign dynamicaly generated signature template" [18]=> string(51) " --
encrypt encrypt data and output XML document" [19]=> string(45) " --
decrypt decrypt data from XML document" [20]=> string(0) "" [21]=>
string(0) "" [22]=> string(54) "Report bugs to 
http://www.aleksey.com/xmlsec/bugs.html";
[23]=> string(0) "" [24]=> string(47) "Written by Aleksey
Sanin ." [25]=> string(0) "" [26]=> string(38) "Copyright (C)
2002-2003 Aleksey Sanin." [27]=> string(62) "This is free software:
see the source for copying information." [28]=> string(0) "" }

On Jan 22, 1:22 pm, "Julian (Google)" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I did the test with the following command line without problems:
>
> $cmd = '/usr/bin/xmlsec1 sign --privkey-pem ' . $privKey .
>              ' --pubkey-der ' . $pubKey . ' --output ' .
> $tempFileName .
>              '.out ' . $tempFileName;
> exec($cmd, $resp);
>
> Sometimes, you could have errors on the xmlsec1, like a missing
> library, to debug that you could change the standard error output
> using:
>
> $cmd = '/usr/bin/xmlsec1 sign --privkey-pem ' . $privKey .
>              ' --pubkey-der ' . $pubKey . ' --output ' .
> $tempFileName .
>              '.out ' . $tempFileName;
> exec( $cmd .' 2>&1 ', $resp)
>
> Then you will see if there is a problem with xmlsec1.
>
> Julian.
>
> On Jan 22, 9:28 am, XoCinek <[EMAIL PROTECTED]> wrote:
>
>
>
> > READ the "Usage: xmlsec"
>
> > $cmd = "/usr/local/bin/xmlsec1 --sign --privkey-pem /path/secured.key
> > --output $tempFileName.out $tempFileName"
>
> > 1. not "sign" but "--sign"
> > 2. --pubkey-der ' . $pubKey - not even needed
>
> > Try, write an answer if it works.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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