Now if i try to build a package and sign it i get the following error:
sfdk build --sign
Pre-run routine failed: Failed to share GnuPG key with the build engine: The selected GPG key is passphrase protected and no passphrase was specified.
I also tried it with setting the password via passphrase-file âsfdk config --global --push package.signing-passphrase-file ~/passphrase.txtâ, but here the file âwas not foundâ but it was there. i also checked the path several times.
Do im doing something wrong here, or does someone has a good documentation how to sign the .rpm package properly with a valid GPG key?
I can only recommend doing exactly what it says.
I.e. not package.signing-passphrase, which doesnât seem to be a thing, but package.signing-passphrase-file and actually $HOME instead of ~.
Also, if youâre going to have a file with the passphrase around, why not just have an unprotected key?
And i can only recommend using actual Linux and things tend to just workâ˘.
Edit: the straight-up passphrase does appear to be a thing according to local help - but advice still stands.
I got intrigued and tried.
I can get to to work with a password-protected key. package.signing-passphrase however does not appear to work and the online docs have multiple issues. ~ vs $HOME makes no difference for me, but on Winderps all bets are off.
Edit:
I was wrong. Turns out an unsigned package still says âdigests OKâ. It was just that when i changed from password variable to password file stopped having errors before compilation just to have other errors after instead:
warning: Could not set GPG_TTY to stdin: Inappropriate ioctl for device
gpg: skipped "Full Name": No secret key
gpg: signing failed: No secret key
error: gpg exec failed (2)
Fatal: Failed to sign packages
The actual code looks to be here:
Searching around, i get the feeling a containerized env might not like the fd shenanigans.
Thank You @attah : i tried it indeed on a windows machine. Will test it today without Passwort protected GPG key and also Check your other suggestions.