GnuPG uses SHA1 for key signatures
Bug #1288293 reported by
xor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnupg (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
(SHA1 is generally considered broken since 2005!)
Used software:
Kubuntu 13.10 amd64
GnuPG package Version: 1.4.14-1ubuntu2.1 (taken from dpkg --status gnupg),
Reproducing instructions:
Generate two keys using default key parameters:
$ gpg --homedir test --gen-key
$ gpg --homedir test --gen-key
Sign one key with the other:
$ gpg --edit-key name-of-first-key
sign
quit
Dump the signed key:
gpg --homedir test --export name-of-first-key | gpg --homedir test --list-packets
You will now notice that all signatures, and therefore even the self-signatures, use "digest algo 2".
This is SHA1:
http://
information type: | Private Security → Public Security |
To post a comment you must log in.
Sorry, there were two glitches in the original instructions:
- You need to generate the GPG home directory before ($ mkdir test), otherwise key generation will fail.
- The "$ gpg --edit-key name-of-first-key" should instead be "$ gpg --homedir test --local-user name-of-second-key -edit-key name-of-first-key". I.e. the home directory was not specified, and you need to tell GPG to use the *second key* for signing the first.