~sircmpwn/sr.ht-discuss

1

metasrht-api fails to load PGP private key

Details
Message ID
<87v7xf5ka8.fsf@baxters.nz>
DKIM signature
pass
Download raw message
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
Details
Message ID
<62563047-9143-48af-a981-f041f34622c7@bitfehler.net>
In-Reply-To
<87v7xf5ka8.fsf@baxters.nz> (view parent)
DKIM signature
pass
Download raw message
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
Reply to thread Export thread (mbox)