Git Product home page Git Product logo

Comments (3)

polhenarejos avatar polhenarejos commented on June 26, 2024

Strangely, if you execute both commands sc-hsm-tool again then it works.

from pico-hsm.

polhenarejos avatar polhenarejos commented on June 26, 2024

I see what is happening. This is nothing wrong with the code. The thing is that sc-hsm-tool sends a shutdown command after 5 seconds of inactivity after initialization, pulling you out of credentials. Plus, sc-hsm-tool --import-dkek-share ignores the --pin argument and it does not perform any login command before dkek import. Try to import the key before 5 seconds of inactivity and it will work. Entering the command will be enough to retain the login status and it will not take into account if you take more than 5 seconds to introduce dkek password. The trick is to call dkek import before 5 seconds.

This does not happen with SCS3 tool and I do not know how to fix it. A possible way is to chain login command with dkek import, but it is really ugly:

pkcs11-tool --login --pin 12341234 -I && sc-hsm-tool --import-dkek-share dkek.pbe

from pico-hsm.

lbradeen avatar lbradeen commented on June 26, 2024

That workaround works, thanks.

Thanks for the project as well.

from pico-hsm.

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.