Comments (3)
Hi,
The PKCS#11 config is part of the main YAML configuration file, and pkcs11-setups
is a top-level key in the YAML structure. By default, pyHanko looks for configuration in pyhanko.yml
in the current directory, but you can customise that if you want. Details are explained here in the documentation.
Do note that PKCS#11 configuration is a new feature for 0.7.0, which hasn't been released yet. This means that you have to install pyHanko from this repository; if you're running the latest version from PyPI: that's the reason why it doesn't work. :)
from pyhanko.
Thank you...
But now, I am sticking to another problem that the value of the module path. In windows, I have successfully singed by ePass2003Auto using the path C:\WINDOWS\system32\eps2003csp11v2.dll
. But can not find the lib/so file in the Ubuntu platform, that's why I can not sign.
I have listed out all the driver and reader lists using the opensc-tool and it shows the epass2003 driver already installed and the reader detected also...
satanu@nexstgo:~$ opensc-tool --list-drivers
Configured card drivers:
.......................
entersafe entersafe
epass2003 epass2003 <---------------------------
rutoken Rutoken driver
.......................
satanu@nexstgo:~$ opensc-tool --list-readers
# Detected readers (pcsc)
Nr. Card Features Name
0 Yes FT ePass2003Auto 00 00
Please help me with the module path for the Ubuntu Platform.
from pyhanko.
Hi,
I certainly don't know all PKCS#11 implementations out there, but I believe OpenSC exposes a PKCS#11 interface through all its drivers using the same PKCS#11 module (i.e. the same .so
file). The package is probably named opensc-pkcs11
or something of that nature; looking at the file list for that package on your system should answer that question.
That said, I'm not an OpenSC expert, and I certainly don't know how the epass2003
driver interacts with it, so you should address further questions (slot number, token label, etc.) through your HSM provider's support channels, or have a look at the OpenSC wiki. These things vary from platform to platform.
I'll close this issue now, but if you run into any pyHanko-specific problems, feel free to reopen it later.
from pyhanko.
Related Issues (20)
- Test fail if no timezone is set on system HOT 1
- Needs a requirements.txt file HOT 5
- TextStamp applied after signature invalidates the previous signature HOT 1
- PDFs where Root -> AcroForm is a broken reference (resolves to a NullObject) fails to parse HOT 2
- cli --no-strict-syntax missing HOT 2
- Signature faulty with rotate_with_page = False on rotated pages/pdfs HOT 1
- non-ascii(chinese) characters not disaplying correctly when generating default signature appearance HOT 1
- enhance document to provide concret example for specifying the page and coordinates of the signature field HOT 2
- can't install pyhanko because of uharfbuzz depending on cython HOT 8
- Validating signature with embedded timestamp fails on 0.19.0 HOT 1
- 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
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.