Allow PKCS#11 token settings to be read from the configuration file
See original GitHub issueHi, Matthias. I am trying to sign a PDF but encountered the following:
Command:
pyhanko sign addsig --field Sig1 beid --lib /usr/lib/libaetpkss.so ii.pdf o.pdf
Error: (several lines eliminated…)
raise PKCS11Error(
pkcs11.exceptions.PKCS11Error: Could not find (unique) cert with label 'Root'.
Error: Generic processing error.
Perhaps the issue has to do with beid
, but I don’t know what to put in place.
Also, It would be very good if you could point me towards a sample code the allows me to sign a PDF using the API instead of using the CLI.
Thank you.
Fernando Cabral
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
5 PKCS#11 Reference Guide - Oracle Help Center
This document describes how native PKCS#11 tokens can be configured into the Java platform for use by Java applications. It also describes how...
Read more >Chapter 6. Configuring applications to use cryptographic ...
Configuring applications to use cryptographic hardware through PKCS #11 ... You can use the same URI string in the ~/.ssh/config file to make...
Read more >Enabling PKCS #11 support after setup - PingDirectory - 9.1
Enable the PKCS11 key manager provider and give it the appropriate provider configuration file and user PIN file. Update any appropriate ...
Read more >PAM-PKCS11 User Manual
pam_pkcs11 is a set of libraries and tools to controls the login process using a PKCS#11 token. The Linux-PAM login module allows a...
Read more >Linux on Z and LinuxONE and openCryptoki: Trouble shooting
A list of all available tokens is required before you can use openCryptoki. This list is provided by the global configuration file called...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I think that would work nicely.
Hi, I’ve addressed this issue in commit f05b781. I haven’t added it to the CLI documentation yet, but in pyHanko 0.7.0 you’ll be able to put this in your config file:
and invoke it with
I’ll close this issue now. Feel free to reopen if you have other questions related to this particular item, but please open a new issue for any other questions you might have. Thanks!
PS: Last weekend, I also pushed the first “batch” of the appearance generation code overhaul I’ve been working on for the last couple of weeks or so. It’s not quite where I want it yet, but provided that I manage to expose enough of the new settings from the configuration file by the time 0.7.0 rolls around, you should get some more control over your signature appearances as well.