Comments (3)
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.
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.
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)
- Verify XML with expired certificate HOT 1
- Is there a way to debug why a signature is not valid? HOT 3
- c14n debug logging
- does not generate "Type" attribute in "reference" of "signedproperties" with XAdES signatures HOT 2
- InvalidDigest if there is a "xmlns" namespace declaration in the root element HOT 2
- Figure out if referenced nodes should be detached from parent document when canonicalizing
- Option to disable transform from signature generated by signxml HOT 1
- Update docs to mention Rohlmann 2023
- invalid padding error when using signature_algorithm=SignatureMethod.SHA256_RSA_MGF1
- SignatureReference inclusive_ns_prefixes not being copied HOT 1
- signxml.exceptions.InvalidDigest: Digest mismatch for reference 0 ()
- XMLVerifier.verify() backward compatibility issue HOT 2
- How can I bypass this. HOT 1
- How to sign using a hardware token? HOT 7
- Creating a detached signature HOT 7
- PKCS#11 support HOT 15
- Failed to sign in the desired format HOT 2
- Allow pretty-printing
- Problem with the strip_pem_header function HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signxml.