Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't check gpg signature when building rootfs #52

Open
jonglezb opened this issue May 20, 2020 · 3 comments
Open

Can't check gpg signature when building rootfs #52

jonglezb opened this issue May 20, 2020 · 3 comments

Comments

@jonglezb
Copy link
Contributor

I tried building a rootfs for the latest 19.07 release with:

$ BRANCH=19.07.3 ./docker-rootfs.sh

However it failed to check the gpg signature:

+ export GNUPGHOME=/keys/gpg/
+ GNUPGHOME=/keys/gpg/
+ export USIGNHOME=/keys/usign/
+ USIGNHOME=/keys/usign/
+ curl https://downloads.openwrt.org/releases/19.07.3/targets/x86/64/sha256sums -fs -o sha256sums
+ curl https://downloads.openwrt.org/releases/19.07.3/targets/x86/64/sha256sums.asc -fs -o sha256sums.asc
+ curl https://downloads.openwrt.org/releases/19.07.3/targets/x86/64/sha256sums.sig -fs -o sha256sums.sig
+ '[' '!' -f sha256sums.asc ']'
+ '[' '!' -f sha256sums.asc ']'
+ gpg --with-fingerprint --verify sha256sums.asc sha256sums
gpg: keyblock resource `/keys/gpg//pubring.gpg': file open error
gpg: Signature made Sun 17 May 2020 02:42:57 AM CEST using RSA key ID 2074BE7A
gpg: Can't check signature: public key not found
+ exit 1

Are those /keys/ paths supposed to be on the host system? Obviously it doesn't work in my case because I don't run the script as root...

@aparcar
Copy link
Member

aparcar commented May 20, 2020

Please test #55 and set GNUPGHOME and USIGNHOME to something accessible by your current user.

Also you have to run docker-common.sh first to download the required keys.

@jonglezb
Copy link
Contributor Author

Thanks, that worked, except that USIGNHOME needs a trailing slash otherwise this part fails:

+ for KEY in '"$USIGNHOME"*'
+ echo 'Trying keys/usign...'

Is there anything preventing using local dirs (keys/gpg/ and keys/usign/) by default?

@aparcar
Copy link
Member

aparcar commented May 21, 2020

I think some folder switching I used absolute path, however please try and create a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants