Giter VIP home page Giter VIP logo

Comments (3)

kislyuk avatar kislyuk commented on July 27, 2024

Hello,

It is impossible to sign anything with a certificate thumbprint. You have to use the private key that corresponds to the certificate.

Thanks for your interest in SignXML. Since this does not appear to be a bug with the library, I am going to close this issue now.

from signxml.

marci4 avatar marci4 commented on July 27, 2024

Hello @kislyuk,

I would like to apologize for being unclear.

The private key of my code signing certificate is stored on an HSM/token.
However, the private key can be accessed via a KSP (Key Storage Provider).

With the help of the KSP and certutil repairstore (https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/certutil#-repairstore) you can, for example, sign a file in signtool as normal using a thumbprint.
The Windows certificate manager shows that the private key is available for the certificate.

Unfortunately, it is not clear to me how I can sign an XML file based on a certificate in the Windows certificate manager (with a private key).

Best regards,
Marcel

from signxml.

kislyuk avatar kislyuk commented on July 27, 2024

I see, thanks for clarifying.

I don't think there are any plans to support Windows certificate services directly, since that is not an open or cross-platform protocol. However, I am researching the possibility of adding support for PKCS#11 in #237 as you noticed. I'm not familiar with the details of Windows certificate services APIs, but if they support PKCS#11, then SignXML should be able to support them in the future.

If you have specific ideas or test cases or code references for PKCS#11 enabled support for your application, please feel free to comment in #237.

from signxml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.