Comments (3)
That's strange... I didn't change anything in the way PKCS#11 tokens are accessed recently, so I'm not sure what the problem could be. That routine in particular hasn't changed for over half a year, and doesn't call any other code in pyHanko.
Questions:
- Are you accessing the device over a network connection?
- Can you reproduce the behaviour with earlier versions?
- If not, how about a more minimal piece of PKCS#11 signing code that doesn't use PDF?
- Can you try looking up the slot number of the token (using something like
pkcs11-tool
) and pass it in via the--slot-no
parameter? That bypasses the (possibly slow) search for matching tokens.
From the behaviour you describe, I'd assume that the problem is somewhere between the PKCS#11 module and the device, but I can't say for sure.
from pyhanko.
Thank you, Matthias. As per the editing I did some minutes after opening the issue, pythanko started working again. I will presume, for the time being, that I had some hardware issue or perhaps a combination of some rare phenomena that interfered with the software. I would suspect my typing and my eyes if I were typing the command. But, since it is in a shell script that has not been changed, typing can not be issue.
Please, consider this to be a non-issue. If it happens again, I'll let you know.
Thank you again.
from pyhanko.
OK, that's good news. I'll close this issue for now, then. :)
from pyhanko.
Related Issues (20)
- Cannot install using pip HOT 3
- Link signature certificate HOT 1
- Link to the documentation in description HOT 1
- stamp font and position is inverted for some PDFs. HOT 5
- [pyhanko-certvalidator] PEM certificate not getting extracted due to incorrect Content-Type header HOT 3
- [pyhanko-certvalidator] Ability to skip nonce validation in OCSP response HOT 3
- Expose encryption dictionary in PdfFileReader as instance variable HOT 9
- The Coordinates Not Set Properly HOT 3
- LICENSE.PyPDF2 missing from wheel distributions HOT 3
- Add digital signature is broken for PDF file larger than 100 000 000 bytes HOT 3
- Xrefs disable
- Support of 64bit PKCS#11 libraries (drivers) HOT 4
- Support of non-English aplphabet (e.g. UTF-8) in stamp-text HOT 1
- libcrypto.so.3: undefined symbol: C_GetFunctionList' HOT 2
- PKCS11: identifiying signing key HOT 4
- hardware token pkcs11.exceptions.NoSuchKey after upgrading to 0.23.0 HOT 3
- CLI: Signing produces name from certificate without international characters HOT 1
- PDF signing breaks if no fields object in Acroform HOT 2
- ValueError: invalid literal for int() with base 10: '' while signing file
- ValueError("Invalid padding bytes.") when trying to decrypt Adobe.PubSec encrypted pdf file HOT 15
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 pyhanko.