[xmlsec] (no subject)

2006-09-06 Thread Jürgen Heiss
Hi, this is a signed file, which has a Keyvalue tag. When I try to verify this file the datalist is empty. But the certificate exists in the signed file how can i access the certificate? Any ideas? key = dsigCtx.signKey;size = xmlSecPtrListGetSize(key-dataList);sdata =

[xmlsec] need help get cert in memory

2006-09-06 Thread Jürgen Heiss
node = xmlSecFindNode(xmlDocGetRootElement(doc), "X509Certificate", xmlSecDSigNs);strcpy(certbase64, node-children-content); // so if I save certbase64 to a file like xxx.cer it will be a valid certifcate. Me question is now how can I get acces into the xmlsec on this certficate. like

Re: [xmlsec] (no subject)

2006-09-06 Thread Aleksey Sanin
Most likely, xmlsec finds the key in the KeyManager by the key name. You can disable KeyName lookups though. Aleksey Jürgen Heiss wrote: Hi, this is a signed file, which has a Keyvalue tag. When I try to verify this file the datalist is empty. But the certificate exists in the signed file

Re: [xmlsec] need help get cert in memory

2006-09-06 Thread Aleksey Sanin
You can parse KeyInfo node and then itterate through the list of KeyData objects. Look inside xmlsec code for examples. Aleksey Jürgen Heiss wrote: node = xmlSecFindNode(xmlDocGetRootElement(doc), X509Certificate, xmlSecDSigNs); strcpy(certbase64, node-children-content); // so if I save