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
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);
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
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
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
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