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? Thanks Jürgen -----Original Message----- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 03. Mai 2006 08:51 To: Jürgen Heiss Cc: xmlsec@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. http://www.aleksey.com/xmlsec/api/xmlsec-openssl-x509.html#XMLSECOPENSSLKEYDATAX509GETCERT Aleksey _______________________________________________ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec