[xmlsec] Loading a DER-encoded certificate

Aleksey Sanin aleksey@aleksey.com
Mon, 07 Apr 2003 18:25:44 -0700


Jesse,

The functions to read keys and certs in DER format are in CVS:

    xmlSecCryptoAppKeyLoad(... ,xmlSecKeyDataFormatDer,...);
    xmlSecCryptoAppKeyCertLoad(... ,xmlSecKeyDataFormatDer,...);
    xmlSecCryptoAppKeysMngrCertLoad(... ,xmlSecKeyDataFormatDer,...);   

Now the file format is an input parameter (currently 
xmlSecKeyDataFormatDer or
xmlSecKeyDataFormatPem) so these functions could be extended to support
other formats if needed.

All old *Pem* functions a gone thought one can use simple defines if needed.

Please let me know if you need something else :)

Aleksey

> Well, if you can wait a couple days I can write a function for reading 
> DER certificates by myself...