@Mik3y
Yeah:
```
[START] Importing key
[ERROR] Keyring has no valid user IDs!
[ERROR] Import operation failed!
```
Conversation
Notices
-
Embed this notice
Light (light@noc.social)'s status on Friday, 16-May-2025 00:43:03 JST Light
-
Embed this notice
cy (cy@fedicy.us.to)'s status on Friday, 16-May-2025 00:42:50 JST cy
Ugh, I ran into this before... GnuPG also doesn't allow keys with no user id, for NO reason. Fortunately, there's a hack to get around it by forging one, but good god is it a hack.
$ gpg --import /tmp/mik3y.pgp
gpg: key 1EF75E811EA23E25: no user ID
gpg: Total number processed: 1
$ echo fuck
fuck
$ gpg -o /tmp/mik3y.binary.pgp --dearmor /tmp/mik3y.pgp
$ echo -ne '\xb4\x0bmik3y m0u5e' >> /tmp/mik3y.binary.pgp
$ gpg --allow-non-selfsigned-uid --import /tmp/mik3y.binary.pgp
gpg: key 1EF75E811EA23E25: accepted non self-signed user ID "mik3y m0u5e"
gpg: key 1EF75E811EA23E25: public key "[User ID not found]" imported
gpg: Total number processed: 1
gpg: imported: 1
$ gpg --list-keys 1EF75E811EA23E25
pub rsa4096 2025-02-27 [SCEA]
86BC532150B7185CEB311B991EF75E811EA23E25
sub rsa4096 2025-02-27 [SEA]
uid [marginal] mik3y m0u5e
CC: @Mik3y@kolektiva.social -
Embed this notice
cy (cy@fedicy.us.to)'s status on Friday, 16-May-2025 00:48:13 JST cy
(it's the byte b4, the length of the uid string in 1 byte, then the uid)
gpg --list-packets something will show the b4 as ctb=b4 like:
# off=1654 ctb=b4 tag=13 hlen=2 plen=2
:user ID packet: "Cy"
or uh...
$ echo -ne '\xb4\x0bmik3y m0u5e' | gpg --list-packets
# off=0 ctb=b4 tag=13 hlen=2 plen=11
:user ID packet: "mik3y m0u5e"
CC: @light@noc.social @Mik3y@kolektiva.social
-
Embed this notice