[xmlsec] Incompatibility between OPENSSL nad MSCRYPTO engines?
aleksey at aleksey.com
Thu Oct 20 07:25:16 PDT 2011
Do you get any error why key was not loaded?
On 10/20/11 1:30 AM, Josef Kokeš wrote:
> I have been using XmlSec for some time, but only with the OpenSSL
> engine. Now I find myself in need of using a MS-Crypto engine (I want to
> use tokens for certificate storage). I thought I would simply change the
> parameter of xmlSecCryptoDLLoadLibrary from "openssl" to "mscrypto", but
> apparently that is not the case:
> When I start preparing the signature context, the xmlSecDSigCtxCreate
> succeeds but the following xmlSecCryptoAppKeyLoadMemory(PfxBuf, PfxSize,
> xmlSecKeyDataFormatPkcs12, PfxPassword, 0, 0) returns 0 - the key could
> not be loaded. But the same command succeeds with OpenSSL. I thought
> perhaps it's another case of incompatible PFX files between Windows XP
> and newer Windows, but that is not the case as I can import the PFX
> correctly using the OS's tools.
> I am using LibXmlSec version 1.2.18 under Windows, as compiled by Igor
> Zlatkovic in no-unicode mode.
> What could possibly be the problem?
> xmlsec mailing list
> xmlsec at aleksey.com
More information about the xmlsec