Skip to content

SecTrustKey v1.2.0: clock on the device, Linux login

Choose a tag to compare

@TakMashhido TakMashhido released this 23 Nov 05:49

The Cardputer now sets its own clock, and Linux login works with the stock tools. On-screen one-time codes no longer need a script on your computer.

📖 Docs: https://koustavmondal.com/SecTrustKey/ · Firmware build #6

What's new

  • Settings → Clock: sync the time over Wi-Fi, or type it on the keyboard
  • Pick a network from a scan, type a hidden network's name, or forget the saved one
  • Sync at start (optional): sets the clock after power-up when the time is unknown; DEL skips it
  • Time zone for the status-bar clock and for typed times (UTC−12:00 to UTC+14:00)
  • The time now survives the restarts into backup, passphrase and clock screens
  • Linux login: pamu2fcfg 1.1 (Ubuntu 24.04, Debian 12) now accepts SecTrustKey. It used to stop with fido_cred_verify (-7) FIDO_ERR_INVALID_ARGUMENT
  • Health → Memory also shows the free stack of the screen task
  • The website is now koustavmondal.com (About page, QR code and every link); the docs moved to https://koustavmondal.com/SecTrustKey/

How Wi-Fi is used: only for the clock, and only in the restart the Clock screen does before USB starts. When the clock is set, the device restarts again, so Wi-Fi is never on while the key answers your computer. WPA2 and mixed WPA2/WPA3 networks work, which covers most routers and phone hotspots; WPA3-only networks do not. The network name and password are stored on the device without encryption, like the other settings. Use a phone hotspot if that matters to you.

Linux login: registrations for pam:// now carry the device's attestation certificate, which older pamu2fcfg requires. Websites still get self attestation, which cannot link your accounts across sites.

Tested on a Cardputer ADV: FIDO2 and OpenPGP, switching between FIDO and smart-card use under pcscd, stock pamu2fcfg, a Wi-Fi sync, and the time zone. stk-time.py still works if you prefer it.

Update

You use Do this Keys
M5 Launcher Copy sectrustkey-v1.2.0-cardputer-adv.bin to the SD card, then SD → the file → Install. Start the new SecTrustKey entry. kept
M5Burner Burn SecTrustKey v1.2.0 for the Cardputer ADV replaced (burning erases the device; make an SD backup first)
esptool, already on SecTrustKey esptool.py --chip esp32s3 --baud 921600 --after watchdog_reset write_flash 0x20000 sectrustkey-v1.2.0-app.bin kept
esptool, first install esptool.py --chip esp32s3 --baud 921600 --after watchdog_reset write_flash --erase-all 0x0 sectrustkey-v1.2.0-cardputer-adv.bin new device

Caution

In M5 Launcher, never delete a SecTrustKey entry unless you mean to erase your keys: Launcher removes the key storage together with the app. Installing the new version adds an entry that shares the same keys.

Files

File Use
sectrustkey-v1.2.0-cardputer-adv.bin Everything: esptool, browser, M5Burner, M5 Launcher
sectrustkey-v1.2.0-app.bin Firmware only, 0x20000: updates of esptool installs
bootloader.bin, partition-table.bin, ota_data_initial.bin Separate parts (0x0, 0x8000, 0xF000)
stk-time.py Optional: sets the clock from a computer
SHA256SUMS.txt Checksums

Checksums (SHA-256)

7bd8c7a5bf0ff1147914d3452d270e231b3558c13d9155dbba2a28b378b349e6  sectrustkey-v1.2.0-cardputer-adv.bin
6ed22bdce30f21f99ab126cab95a1f50ca32634be46218c2e318a2f9828feddf  sectrustkey-v1.2.0-app.bin
8abc16eeeffdead17fab10ec5cee283dbdcc0cc89ff5bf1e65b23889a5bd0ccd  bootloader.bin
5b163efbc4be83f2fa03b1afe9fea69b6eda17da5ea27f917d3a1e7175f989cd  partition-table.bin
7d2c7ac4888bfd75cd5f56e8d61f69595121183afc81556c876732fd3782c62f  ota_data_initial.bin
a8f4b716baa7bf4c18f9af84b759b86fc8327fd8acd0e93bdfe565e0e07c48da  stk-time.py

Built from commit e80de29 with ESP-IDF v5.5.3. Licensed under the GNU AGPL v3.0.