Comments (3)
Strangely, if you execute both commands sc-hsm-tool
again then it works.
from pico-hsm.
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.
That workaround works, thanks.
Thanks for the project as well.
from pico-hsm.
Related Issues (20)
- Are there plans to add support for ed25519? HOT 4
- Response time issue HOT 2
- Unable to initialize a new Pico-HSM HOT 4
- Usage in Python HOT 5
- AES Encrypt / Decrypt HOT 13
- Usage on MacOS and Windows with Microsoft CCID driver HOT 8
- ERROR - common.h missing HOT 1
- ECDH derived key is missing one byte compared with openssl-pkeyutl HOT 3
- EC Key Creation HOT 3
- urllib.error.HTTPError: HTTP Error 500: Internal Server Error in "pico-hsm-tool.py" initialize command HOT 5
- mistake in pico-hsm-tool.py HOT 3
- Strange behaviours betwwen Windows 10 & 11 HOT 4
- How to list pkcs11 url of the private key? HOT 1
- security consideration info HOT 4
- Support for YD-RP2040 by VCC-GND Studio ? HOT 2
- USB IDs HOT 1
- waveshare zero build fails. HOT 10
- pico-hsm-tool urllib.error.HTTPError: HTTP Error 500: Internal Server Error HOT 2
- HTTP server error on initialization HOT 1
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 pico-hsm.