[xmlsec] need help get cert in memory

Aleksey Sanin aleksey at aleksey.com
Wed Sep 6 08:32:44 PDT 2006


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 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
>  
>   x509 = xmlSecMSCryptoKeyDataX509GetCert(tmp,pos);
>  
> Is there a way to load the cert from file
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec



More information about the xmlsec mailing list