[xmlsec] How to get Certificate from signed xml file

Jürgen Heiss jheiss at Mesonic.com
Wed May 3 00:25:14 PDT 2006

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);
		if(tmp != NULL) 
		   xmlSecPtrListSet(key->dataList, data, pos);

	x509 = xmlSecOpenSSLKeyDataX509GetCert(tmp, pos); 

But x509 is alwys 0x000000. Any ideas why this can be?


-----Original Message-----
From: Aleksey Sanin [mailto:aleksey at aleksey.com] 
Sent: Mittwoch, 03. Mai 2006 08:51
To: Jürgen Heiss
Cc: xmlsec at aleksey.com
Subject: Re: [xmlsec] How to get Certificate from signed xml file

> But I still don't find a way the export this certificate to my local machine for example c:\mycert.cer.



More information about the xmlsec mailing list