[xmlsec] xmlSecCryptoAppKeyLoadMemory
Yeshwanth C
cyeshwanth at gmail.com
Sun Dec 17 23:24:14 PST 2006
I am loading a certificate from micrsoft certrificate store. From that I
get PCCERT_CONTEXT. From this PCCERT_CONTEXT, I extract the member that
contains the public key blob which I write in binary format into a file.
I read from this file and send the contents to xmlSecCryptoAppKeyLoadMemory().
So which format should i specify in this condition from the given below list
xmlSecKeyDataFormatUnknown
the key data format is unknown.
xmlSecKeyDataFormatBinary
the binary key data.
xmlSecKeyDataFormatPem
the PEM key data (cert or public/private key).
xmlSecKeyDataFormatDer
the DER key data (cert or public/private key).
xmlSecKeyDataFormatPkcs8Pem
the PKCS8 PEM private key.
xmlSecKeyDataFormatPkcs8Der
the PKCS8 DER private key.
xmlSecKeyDataFormatPkcs12
the PKCS12 format (bag of keys and certs)
xmlSecKeyDataFormatCertPem
the PEM cert.
xmlSecKeyDataFormatCertDer
the DER cert.
Thanks and regards
Yesh
On 12/18/06, Aleksey Sanin <aleksey at aleksey.com> wrote:
>
> If you use PEM format, it should be in PEM format, if you use DER
> format, it should be in DER format, and so on.
>
> Aleksey
>
> Yeshwanth C wrote:
> > I even converted the file to base 64 but still the same error "invalid
> > format" 1. What should teh file format be?
> > Pasted here is the file contents
> >
> >
> MIGJAoGBAM9oqhVJrRkG4Dbc1nLhpNWH1X4+U45ktc+kZD6H6gG+F/LmqA2YEZgCKJqWzjLG8MV4
> >
> >
> y/8r0XDmOfCc/6i75a/h2zFphu5fakl7hZ/OshDLHgfvkr4tiIqj8JE5E6WZzFCRq4beLzrsdgG/
> >
> > FEeP6PWoCdqHVzHCAX8c7h10QvqFAgMBAAE
> >
> >
> >
> > REgards
> > yesh
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20061218/eea07101/attachment-0002.htm
More information about the xmlsec
mailing list