Hi list, I'm having trouble setting up a sourcehut instance on
NixOS. metasrht-api fails to start, with this message:
panic: Failed to load [mail]pgp-privkey for email signature
I have armored PGP keys in place with the configuration file set up to
point to them. Does anyone have a clue what this message means?
Thanks,
Jeremy
Hey Jeremy,
On 10/26/24 10:40 AM, Jeremy Baxter wrote:
> Hi list, I'm having trouble setting up a sourcehut instance on
> NixOS. metasrht-api fails to start, with this message:
>
> panic: Failed to load [mail]pgp-privkey for email signature
>
> I have armored PGP keys in place with the configuration file set up to
> point to them. Does anyone have a clue what this message means?
It means that the library could not find a suitable private key in the
keyring you specified. Possible reasons include:
* No private key found - did you mix up private/public keys?
* Private key is encrypted - is the key exported w/o passphrase?
* If you are using less common algorithms, they might not be supported
by the underlying library [1]
I recommend looking at the output of
gpg --list-packets < privkey.asc
and check for anything unusual. If you've ruled out e/t else, feel free
to send me the _public_ key in private and I can check if it should be
supported in theory by the library.
[1] https://github.com/ProtonMail/go-crypto
Cheers,
Conrad