Skip to content

u/nowboarding

In this archive from Apr 2015 to Jun 2021

109
posts
183
comments
0
media
1.4k
score

When I enter that connect command it connects without asking for password because password is already saved under /var/lib/iwd.

In this case do I still need to check AutoConnect setting or does that mean I already have it correct? Where is this setting I didn't find it in man page for iwd.config.

If running the scan is the first step to auto connect what are the next steps? I want to test it by running disconnect then seeing it automatically reconnect within a few seconds (based on the MaximumPeriodicScanInterval answer that the top comment gave in this post).

1 points

Thanks that worked. I didn't see any "User" mode option but when I deleted the keys (not reset to original, which was also an option), I got the right output when I rebooted.

# sbctl status
==> WARNING: Setup Mode: Enabled
==> WARNING: Secure Boot: Disabled

I did sudo sbctl create-keys and sudo sbctl enroll-keys which both passed, but sbctl status still shows the same, like in https://github.com/Foxboron/sbctl/issues/25.

sudo sbkeysync --verbose shows this at the bottom. The output is identical to that even when I add --pk. So only an entry for db was added under firmware keys section. I'm not sure what it's supposed to look like but in the github issue there's something shown for KEK too.

firmware keys:
  PK:
  KEK:
  db:
    /C=Database Key
  dbx:
filesystem keys:
  PK:
    /C=Platform Key
     from /usr/share/secureboot/keys/PK/PK.auth
  KEK:
    /C=Key Exchange Key
     from /usr/share/secureboot/keys/KEK/KEK.auth
  db:
    /C=Database Key
     from /usr/share/secureboot/keys/db/db.auth
  dbx:
New keys in filesystem:
 /usr/share/secureboot/keys/KEK/KEK.auth
 /usr/share/secureboot/keys/PK/PK.auth
Inserting key update /usr/share/secureboot/keys/KEK/KEK.auth into KEK
Error writing key update: Invalid argument
Error syncing keystore file /usr/share/secureboot/keys/KEK/KEK.auth

Only KEK-* and db-* exist under /sys/firmware/efi/efivars and I did chattr on them. There's not even any PK-* unlike the github issue. Any pointers you could please provide? I'm not sure where to go from here. I'm using sbctl 0.1-1, which seems the latest.

1 points

I've never entered setup mode before so not sure how to get into it. Is there an option in the firmware menu for it that you set then reboot? Then when I run sbctl status after rebooting I'll see Setup Mode: Enabled?

I don't see such a menu option in my firmware menu on Dell but I thought that you can enter setup mode by deleting the keys, which it looks like I did because of the sbkeysync output showing empty firmware keys?

1 points

That file was also immutable so I changed it but got the same errors as before.

I tried your sbctl tool suggested by the other comment. I did sbctl create-keys and sbctl enroll-keys and rebooted but sbctl status is still showing

# sbctl status
==> Setup Mode: Disabled
==> WARNING: Secure Boot: Disabled

Unlike the github output shows I wasn't able to get this output to start with

# sbctl status
==> WARNING: Setup Mode: Enabled
==> WARNING: Secure Boot: Disabled

I thought I can enter setup mode by clearing the keys in the firmware, which I think I did. There are empty firmware keys in output of sudo sbkeysync --pk --dry-run --verbose

Filesystem keystore:
  /usr/share/secureboot/keys/db/db.auth [3283 bytes]
  /usr/share/secureboot/keys/db/db.der.esl [1263 bytes]
  /usr/share/secureboot/keys/db/db.pem [1708 bytes]
  /usr/share/secureboot/keys/db/db.der [1219 bytes]
  /usr/share/secureboot/keys/db/db.key [3272 bytes]
  /usr/share/secureboot/keys/KEK/KEK.auth [3278 bytes]
  /usr/share/secureboot/keys/KEK/KEK.der.esl [1270 bytes]
  /usr/share/secureboot/keys/KEK/KEK.pem [1716 bytes]
  /usr/share/secureboot/keys/KEK/KEK.der [1226 bytes]
  /usr/share/secureboot/keys/KEK/KEK.key [3272 bytes]
  /usr/share/secureboot/keys/PK/PK.auth [3270 bytes]
  /usr/share/secureboot/keys/PK/PK.der.esl [1262 bytes]
  /usr/share/secureboot/keys/PK/PK.pem [1704 bytes]
  /usr/share/secureboot/keys/PK/PK.der [1218 bytes]
  /usr/share/secureboot/keys/PK/PK.key [3272 bytes]
Invalid key /usr/share/secureboot/keys/PK/PK.der.esl
 - unknown cert type
Invalid key /usr/share/secureboot/keys/PK/PK.pem
 - unknown cert type
Invalid key /usr/share/secureboot/keys/PK/PK.der
 - unknown cert type
Invalid key /usr/share/secureboot/keys/PK/PK.key
 - unknown cert type
Invalid key /usr/share/secureboot/keys/KEK/KEK.der.esl
 - unknown cert type
Invalid key /usr/share/secureboot/keys/KEK/KEK.pem
 - unknown cert type
Invalid key /usr/share/secureboot/keys/KEK/KEK.der
 - unknown cert type
Invalid key /usr/share/secureboot/keys/KEK/KEK.key
 - unknown cert type
Invalid key /usr/share/secureboot/keys/db/db.der.esl
 - unknown cert type
Invalid key /usr/share/secureboot/keys/db/db.pem
 - unknown cert type
Invalid key /usr/share/secureboot/keys/db/db.der
 - unknown cert type
Invalid key /usr/share/secureboot/keys/db/db.key
 - unknown cert type
firmware keys:
  PK:
    
  KEK:
    
  db:
    
  dbx:
filesystem keys:
  PK:
    /C=Platform Key
     from /usr/share/secureboot/keys/PK/PK.auth
  KEK:
    /C=Key Exchange Key
     from /usr/share/secureboot/keys/KEK/KEK.auth
  db:
    /C=Database Key
     from /usr/share/secureboot/keys/db/db.auth
  dbx:
New keys in filesystem:
 /usr/share/secureboot/keys/db/db.auth
 /usr/share/secureboot/keys/KEK/KEK.auth
 /usr/share/secureboot/keys/PK/PK.auth

What is the expected output of that command?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.