Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - stefano simonato

Pages: [1]
1
Digital Signatures / Signing XML with smartcard(private key not exportable)
« on: February 23, 2018, 03:39:52 PM »
Hi,

I am trying to sign xml with a smartcard and getting the error bellow:

 
Quote
ChilkatLog: SetX509Cert:
     DllDate: Nov 10 2017
     ChilkatVersion: 9.5.0.70
     UnlockPrefix: CISSSA.CB1112018
     Architecture: Little Endian; 32-bit
     Language: ActiveX
     VerboseLogging: 0
     usePrivateKey: 1
     exportPrivateKey:
       Failed to export private key.
       The private key is not exportable from the Windows protected
 store.
     --exportPriv>ateKey
     Certificate does not have a private key.   --SetX5>09Cert
 --ChilkatLog

I am using the a CertStore to get a object Cert(it has the private key) but when i call SetX509Cert using this object Cert, the error ocurs.

How can I sign my xml?

Pages: [1]