[xmlsec] How to get Certificate from signed xml file

Aleksey Sanin aleksey at aleksey.com
Tue May 2 07:50:13 PDT 2006


You can get to signature key, from key you can get access
to "KeyData" objects. Then you need to iterate through
the list and find one for certificate (note, this part
is crypto specific!). Then you can get a handle no native
"crypto" certificate (e.g. for OpenSSL it will be X509*).


Aleksey

Jürgen Heiss wrote:
> Hi Aleksey,
> 
> Well I have access to the xmlsecDsigCtx, but I didn't find any possiblity to get access to the certificate itself or to save the certificate ;o(
> 
> 
> 
> -----Original Message-----
> From: Aleksey Sanin [mailto:aleksey at aleksey.com] 
> Sent: Dienstag, 02. Mai 2006 16:45
> To: Jürgen Heiss
> Cc: Alexandre Kalendarev; xmlsec at aleksey.com
> Subject: Re: [xmlsec] How to get Certificate from signed xml file
> 
> If you are writing a program in C then you have access to the signature certificates through xmlSecDsigCtx data structure. Check the documentation for more details.
> 
> Aleksey
> 
> 
> 
> 



More information about the xmlsec mailing list