Re: [xmlsec] php_xmlsec Some problems in AES encryption

2006-05-03 Thread Aleksey Sanin
Warning: xmlsec_doc_encrypt(): func=xmlSecEncCtxEncDataNodeRead:file=xmlenc.c:line=885:obj=unknown:subj=unknown:error=45:key is not found: in /usr/local/src/php-4.4.0/ext/xmlsec/xmlsec.php on line 79 Warning: xmlsec_doc_encrypt(): func=xmlSecEncCtxXmlEncrypt:file=xmlenc.c:line=375:obj=unknown

RE: [xmlsec] How to get Certificate from signed xml file

2006-05-03 Thread Jürgen Heiss
Thank Aleksey. This is my code. key = dsigCtx.signKey; size = xmlSecPtrListGetSize(key->dataList); sdata = (*((dsigCtx).signKey)).dataList; for(pos = 0; pos < size; ++pos) { tmp = (xmlSecKeyDataPtr)xmlSecPtrListGetItem(key->dataList, pos);

[xmlsec] php_xmlsec Some problems in AES encryption - I find errors ( may be ? )

2006-05-03 Thread Alexandre Kalendarev
Hmm, I find errors in code: switch( keyType ){ case XMLSEC_DES: /* <--- in this must be XMLSEC_AES Constant */ pKey = xmlSecKeyReadMemory (xmlSecKeyDataAesId , (xmlSecByte* ) arg , keySize ); break; case XMLSEC_AES: /* <--- in this must be XMLSEC_DES Constant */ pKey = xmlS

Re: [xmlsec] How to get Certificate from signed xml file

2006-05-03 Thread Aleksey Sanin
So, Now I got my certificate. I was using the xmlSecMSCryptoKeyDataX509GetCert Function. The X509 Struct is filled, but how can I write this info now to my local disk into one cert file? http://www.openssl.org/docs/ Aleksey ___ xmlsec mailing list

[xmlsec] problem with xmlSecCryptoAppKeysMngrCertLoadMemory

2006-05-03 Thread Martin Waite
Hi, I'm trying to load X509 certificates from memory into a key manager: if(xmlSecCryptoAppKeysMngrCertLoadMemory(mngr, cert[i], strlen(cert[i]), xmlSecKeyDataFormatPem, xmlSecKeyDataTypeTrusted) < 0) { throw_exception("Error: failed to load pem certificate %d (%d bytes) fro

Re: [xmlsec] problem with xmlSecCryptoAppKeysMngrCertLoadMemory

2006-05-03 Thread Aleksey Sanin
It looks as if it is happy with the PEM image of the certificate, but something else is preventing the certificate from being "adopted". Yes... To the best of my knowledge, X509_STORE_add_cert() never fails... Can you run it under debugger and find out why it actually fails in this case? Aleks