Giter VIP home page Giter VIP logo

Comments (3)

MatthiasValvekens avatar MatthiasValvekens commented on June 1, 2024

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.

satanu01 avatar satanu01 commented on June 1, 2024

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.

MatthiasValvekens avatar MatthiasValvekens commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.