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

Unable to Sign package with GPG key #5

Open
SamuelYun91 opened this issue Sep 25, 2019 · 1 comment
Open

Unable to Sign package with GPG key #5

SamuelYun91 opened this issue Sep 25, 2019 · 1 comment

Comments

@SamuelYun91
Copy link

I'm following the guide to create the minimalPkg. I've verified that the gpg key has been created by running gpg -K. I even ran this command by chroot into the build environment.

However, when I run the command to create the package pkgscripts-ng/PkgCreate.py -p x64 -c minimalPkg, I get the following error:

"SignPackageError:
[x64] Gpg key not exist. You can add -S to skip package code sign or import gpg key first."

Any ideas? Thank you!

@johnchlorophyll
Copy link

johnchlorophyll commented Jul 6, 2020

Gpg is not using secring.gpg for storing private keys after version 2.1. I'm not sure how to convert the current file to secring.gpg seems --export-key-file is not working for Synology build.
But here's another way which builds an older version gpg and can generate the key you need for building.
Use the script in docker container or any Debian(Ubuntu) system.

docker pull debian:latest # if you want to use docker
docker run -it --name debian debian bash #if you use docker.
apt update && apt install -y libpth-dev libksba-dev libgcrypt-dev libgpg-error-dev libassuan-dev zlib1g-dev wget bzip2 gcc make pinentry-tty
wget https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.0.31.tar.bz2
tar -xvf ./gnupg-2.0.31.tar.bz2
cd ./gnupg-2.0.31 && ./configure && make && make install
mkdir -p ~/.gnupg
echo "pinentry-program /usr/bin/pinentry-tty" >> ~/.gnupg/gpg-agent.conf
gpg2 --gen-key

and you can copy gpg files out by docker cp debian:/root/.gnupg/ <someplace in you machine>
hope this helps.

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