OK guys, here is the story with mscrypto:<br><br>with Igor's 1.2.13 binaries and simple xmlsec.exe command line on Win XP SP2<br>- openssl sign with .p12 - OK<br>- mscrypto sign with <dsig:KeyName>Shallow, Ed</dsig:KeyName> - OK<br>
- mscrypto sign with <dsig:KeyName>Adam Grossman</dsig:KeyName> - OK<br><br>with Igor's 1.2.18 unicode=yes binaries and simple xmlsec.exe command line on Win XP SP2<br>
- openssl sign with .p12 - OK<br>
- mscrypto sign with <dsig:KeyName>Shallow, Ed</dsig:KeyName> - key is not found<br>
- mscrypto sign with <dsig:KeyName>Adam Grossman</dsig:KeyName> - OK<br><br>with Igor's 1.2.13 unicode=no binaries and simple xmlsec.exe command line on Win XP SP2<br>
- openssl sign with .p12 - crash<br>
- mscrypto sign with <dsig:KeyName>Shallow, Ed</dsig:KeyName> - key is not found<br>
- mscrypto sign with <dsig:KeyName>Adam Grossman</dsig:KeyName> - key is not found<br>- numerous other crashes<br><br>Given that Igor's compile and link process and resultant binaries are used throughout the above tests. it is clear that the mscrypto code somewhere after 1.2.13 has introduced the error.<br>
Not sure exactly where, but simple certificate search in mscrypto is now broken. Other regressions have also been introduced.<br><br>Is anyone else having more success with mscrypto after 1.2.15 ?<br><br>Here is the output for the "key is not found" error<br>
<br>C:\XMLSec>xmlsec sign --crypto mscrypto --output inout/edsigned-enveloped.xml tmpl/tmpl-EPM-sign-enveloped.xml<br>func=xmlSecKeysMngrGetKey:file=..\src\keys.c:line=1370:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec library function failed: ;last error=-2146885628 (0x80092004);last error msg<br>
=Cannot find object or property.<br><br>func=xmlSecDSigCtxProcessKeyInfoNode:file=..\src\xmldsig.c:line=871:obj=unknown:subj=unknown:error=45:key is not found: ;last error=-2146885628 (0x80092004);last error msg=Cannot find o<br>
bject or property.<br><br>func=xmlSecDSigCtxProcessSignatureNode:file=..\src\xmldsig.c:line=565:obj=unknown:subj=xmlSecDSigCtxProcessKeyInfoNode:error=1:xmlsec library function failed: ;last error=-2146885628 (0<br>x80092004);last error msg=Cannot find object or property.<br>
<br>func=xmlSecDSigCtxSign:file=..\src\xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec library function failed: ;last error=-2146885628 (0x80092004);las<br>t error msg=Cannot find object or property.<br>
<br>Error: signature failed<br>Error: failed to sign file "tmpl/tmpl-EPM-sign-enveloped.xml"<br><br clear="all"><br>-- <br>Ed's Contact Information:<br>Mobile Phone: 613-852-6410<br>Gmail: <a href="mailto:ed.shallow@gmail.com">ed.shallow@gmail.com</a><br>
VOIP Address: <a href="mailto:107529@sip.ca1.voip.ms">107529@sip.ca1.voip.ms</a><br>VOIP DID#: 613-458-5004<br>Skype ID: edward.shallow<br>Home Phone: 613-482-2090<br><br>