Core developer of Crystal, container connoisseur, sysadmin, occasional anime addict.
key = pgpy.PGPKey.from_blob(keytext) msg = pgpy.PGPMessage.new("foooo") # To get the backtrace for the failure on meta.sr.ht key.encrypt(msg)
Then you can see the commands I used above.
My issue is a pgpy bug, since my first UID is revoked, pgpy thinks neither uid is primary.
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.8/site-packages/pgpy/decorators.py", line 129, in _action return action(_key, *args, **kwargs) File "/usr/lib/python3.8/site-packages/pgpy/pgp.py", line 2185, in encrypt cipher_algo = prefs.pop('cipher', uid.selfsig.cipherprefs) IndexError: list index out of range
>>> key.userids.is_primary False >>> key.userids.is_primary False >>> key.userids.selfsig <PGPSignature [CertRevocation] object at 0x7f852cdb5550> >>> key.userids.selfsig <PGPSignature [Positive_Cert] object at 0x7f852cdb5bb0> >>> key.userids.selfsig.cipherprefs  >>> key.userids.selfsig.cipherprefs [<SymmetricKeyAlgorithm.AES256: 9>, <SymmetricKeyAlgorithm.AES192: 8>, <SymmetricKeyAlgorithm.AES128: 7>]
I'm also having this issue, with this key: https://keybase.io/rx14/pgp_keys.asc
The only unusual part of my keys, is that the first UID has been revoked, and replaced (name change)
I have changed my email recently, and would like commits and mails from the old address to click through to my account even when registered to the new address.
This could be accomplished by allowing registering email aliases to an account, with the main account email being your current one.
When an email address sends to the list for the first time, have an option for the email to be held and a copy sent to the mailing list administrators to allow them to review if the email is spam, and either OK the message and any future contributions to the list, or not if the message is spam.