Aug 30, 2019 10:14 AM|Bharat Vasant|LINK
I can't see the PrivateKey in the code so I was wondering if that could be the reason for that?
Private key does not come out of the smartcard for security reasons. The content (hash) to be signed is sent to smartcard chip where it gets signed using the specified algorithm and Signature is returned.
For signing PDF from ASP.NET web application, please refer to complete sample working project in VS 2015 or VS 2017 at the link below: