python-eoi-plugin
Introduction
This package provides a plugin for pyHanko’s PDF signing CLI. The implementation is a very thin convenience wrapper around the PKCS#11 functionality included within the “core” pyHanko library.
Installation
Assuming you are installing with pip, running pip install pyhanko-eoi-plugin will install both pyHanko and the plugin. If you already have a working pyHanko install, take care to ensure that the plugin is installed in the same Python environment.
PyHanko makes use of Python’s package entry point mechanism to discover plugins, so installing both side-by-side should suffice. To test whether everything works, run pyhanko sign addsig and verify that eoi appears in the list of subcommands.
Installation troubleshooting
If you’re having issues getting the plugin autodection to work, you can also add the following snippet to your PyHanko configuration file:
plugins:
- pyhanko_eoi.cli:EOIPlugin
This will work as long as you ensure that pyhanko_eoi is importable.
Signing a PDF file using a Slovenian eOI card
To sign a PDF file using your eOI card and pyHanko’s CLI (with this plugin), use the eoi subcommand to addsig, with the --lib parameter to tell pyHanko where to look for the eOI PKCS#11 library.
On Linux, it is named opensc-pkcs11.so and can usually be found under /usr/lib or /usr/local/lib. On macOS, it is named opensc-pkcs11.dylib, and can similarly be found under /usr/local/lib. The Windows version is typically installed to C:\Windows\System32 and is called opensc-pkcs11.dll.
On Linux, this boils down to the following:
pyhanko sign addsig --field Sig1 eoi --user-pin 12345 \
--lib /path/to/opensc-pkcs11.so input.pdf output.pdf
Metadata
Release files for pyhanko-eoi-plugin 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyhanko-eoi-plugin-0.1.1.tar.gz | 6.0 kB | Without provenance | Details for pyhanko-eoi-plugin-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhanko_eoi_plugin-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pyhanko_eoi_plugin-0.1.1-py3-none-any.whl |
Total release size: 12.6 kB
Release files / pyhanko-eoi-plugin-0.1.1.tar.gz
| Download URL | pyhanko-eoi-plugin-0.1.1.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
455c1672bdbe30a0c8e46c3ffffb799730fb1e51d6435cbae0056cb655fa23e5
|
|
BLAKE2b-256 checksum How to use checksums |
c5defe97c4ae3e54ea9eaa2ac1a5a496a33ac8d718946bb6ddc613233fe519ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / pyhanko_eoi_plugin-0.1.1-py3-none-any.whl
| Download URL | pyhanko_eoi_plugin-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
394c1893947f1327d940b8452a2bafe4e7c62de8ead29f71a9774a7e33b0cdd5
|
|
BLAKE2b-256 checksum How to use checksums |
fd3fba2c4b5bf32d1c7d4948497d269a81e351bb22914f1a6efea41d64c29a03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for pyhanko-eoi-plugin 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.