https://www.swift.org/keys/all-keys.asc gpg import doesn't work as expected
Steps to reproduce the behavior:
- Go to https://www.swift.org/install/linux/swiftly/
curl https://www.swift.org/keys/all-keys.asc | gpg --import -
- Error
Expected behavior
gpg imports keys from all-keys.asc file
Actual behavior
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Environment details
Additional context
curl downloads the gzipped all-keys.asc file, but gpg doesn't expect this;
it is possible to see this using the hexdump Linux utility.
Renaming the file to .gz and using gunzip all-keys.asc.gz fixes this.
Today the gzipped asc file length is 12782 bytes, decompressed is 21975 bytes.
Seems that using curl --compressed ... also helps.
https://www.swift.org/keys/all-keys.asc gpg import doesn't work as expected
Steps to reproduce the behavior:
curl https://www.swift.org/keys/all-keys.asc | gpg --import -Expected behavior
gpg imports keys from all-keys.asc file
Actual behavior
gpg: no valid OpenPGP data found.gpg: Total number processed: 0Environment details
Additional context
curl downloads the gzipped all-keys.asc file, but gpg doesn't expect this;
it is possible to see this using the hexdump Linux utility.
Renaming the file to
.gzand usinggunzip all-keys.asc.gzfixes this.Today the gzipped asc file length is 12782 bytes, decompressed is 21975 bytes.
Seems that using
curl --compressed ...also helps.