Comments (6)
I think the issue is in the script inject_key.py which replace section flash_storage and set devicekey at position 0x0 (0x0F400 in flash) while the correct position is 0x400 (0x0F800 in flash).
When devicekey is set the firmware think the attestation key is already initialized and return error.
I used the script inject_key_bin.py (python3 inject_key_bin.py --key key.der --ctr 100 --bin build/u2f.bin
) which don't replace section flash_storage but patch the exaction position, so the attestation cert remain 0xff (-1) and when certtool init is invoked attestation cert is set.
from u2f-token.
@yashikada thank you. Indeed, inject_key.py
produced broken flash layout. #50 should fix it. Unfortunately, I don't have any devices around to test it. Can you please check if it works OK?
from u2f-token.
@gl-sergei sorry wrong test, doesn't works. I tested on demo site, report timeout, I tested on google report wrong key.
from u2f-token.
I removed patch of files src/cert/dump-der.py and src/u2f-apdu.c, works, so inject_key.py inject correctly the device key now.
from u2f-token.
@yashikada thank you for your test. I was finally able to set up stand and verify and fix it on stm32. Now it works for me. I'll close this issue. Feel free to reopen it if there are still any problems.
from u2f-token.
for me is working, thank you for the improvement.
from u2f-token.
Related Issues (20)
- How to handle 'Push button' using a 'Blue Pill' board? HOT 1
- Different udev rules HOT 3
- Udev rules for certtool
- no x.509v3 U2F attestation certificate HOT 6
- Add .elf file to releases, or make inject_key work on .bin files HOT 10
- Errors while using u2f-token with tomu HOT 5
- certtool: add test command
- Alternative to NIST P-256 ? HOT 3
- Update the token with USB HOT 1
- Packaging into Debian HOT 2
- Unable to boot properly with TOMU inserted HOT 6
- Windows + Firefox support HOT 3
- The key is not initialized HOT 3
- blue pill switch? HOT 3
- FIDO2?
- Signed tags
- Problems with dfu-utils flashing tomu on MacOS - dfu-util: Cannot set alternate interface
- Port for Raspberry PI Pico? HOT 2
- Issue with counters? 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 u2f-token.