ssh-to-pgp icon indicating copy to clipboard operation
ssh-to-pgp copied to clipboard

GPG keys dont have user ID

Open acidprime opened this issue 4 months ago • 0 comments

I have been trying to use this to convert an RSA to a PGP for signing but I can't seem to get it to produce a key with a user ID that's correct

 # Generate the private key with user ID
 81           nix --experimental-features 'nix-command flakes' run \
 82             github:Mic92/ssh-to-pgp/289ffc2651b797327afa6e5c74cdcd510a52b71a \
 83             -- \
 84             -name "Key" \
 85             -comment "hello" \
 86             -email "[email protected]" \
 87             -private-key \
 88             -i ~/.ssh/id_rsa \
 89             -o private_key.gpg
 90 
 91           # Generate the public key with user ID
 92           nix --experimental-features 'nix-command flakes' run \
 93             github:Mic92/ssh-to-pgp/289ffc2651b797327afa6e5c74cdcd510a52b71a \
 94             -- \
 95             -name "Key" \
 96             -comment "hello" \
 97             -email "[email protected]" \
 98             -i ~/.ssh/id_rsa \
 99             -o public_key.gpg

+ gpg --batch --import public_key.gpg
gpg: directory '/home/runner/.gnupg' created
gpg: WARNING: server 'keyboxd' is older than us (2.4.4 < 2.4.5)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: key B942DXXXXXXXXXX: new key but contains no user ID - skipped
gpg: Total number processed: 1
gpg:           w/o user IDs: 1
+ gpg --batch --import private_key.gpg
gpg: WARNING: server 'keyboxd' is older than us (2.4.4 < 2.4.5)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: key B942DXXXXXXXXXX: new key but contains no user ID - skipped
gpg: key B942DXXXXXXXXXX: failed to re-lookup public key: No public key
gpg: error reading 'private_key.gpg': No public key
gpg: import from 'private_key.gpg' failed: No public key
gpg: Total number processed: 0
gpg:           w/o user IDs: 1
gpg:       secret keys read: 1

Not sure if I'm missing anything but it looks like the user id is not being added to the keys

acidprime avatar Oct 07 '24 18:10 acidprime