[xmlsec] Problems with MScryto.

Wouter wsh at xs4all.nl
Thu Nov 6 04:24:42 PST 2003


Hi,

The example you're referring to doesn't work because mscrypto does not
support importing of private keys in any other format then pkcs12. So you
should either use a pkcs12 file for importing the keys, or use a private
key that is in your certificate store, and load/use that one.

Wouter

>I am executing the example < sign2.c > of package XMLSEC in a system
>Windows and
>using MScripto and it does not work correctly.
>
>I do not understand the code of the function < xmlSecMSCryptoAppKeyLoad
>, >I use
>like parameters, the file that contains the private key, and I indicate
>that the
>format is < to xmlSecKeyDataFormatDer >, but the function generates an
>error.  The
>code for that format is not implemented.
>
>I understand that that error is because  uses the method  of the
interface >of the
>CryptoAPI, and I am passing him a key private.
>
>It is not finished to use the CryptoAPI?
>
>Somebody can help me sending some example that works using Windows and
>CryptoAPI?
>
>Thanks



More information about the xmlsec mailing list