Pie System
2022-07-17 16:34:16 UTC
Is there any way to have a callback invoked when PyGPGME needs a key?
I was under the impression I could use LDAP as a keyserver, and
configure dirmngr to use it so that when I needed a key (in this
case to verify a signature) it would contact the LDAP server,
fetch the key.
Instead, it's just saying
123abc: No public key
It's not even trying to contact LDAP (I can see from the logs
nothing is connecting to LDAP)
I desgined the entire application to use LDAP because I knew I'd need
some way to store keys, and apparently, PyGPGME doesn't use it?
dirmngr.conf is configured correctly. It's able to send keys, and store
them on the LDAP server via gpg --send-keys
But even if I explicitly tell it:
ctx = gpg.Context(offline=False)
It doesn't contact LDAP.
Is there some way to at least find out which key it needs so I can
manually fetch the key? Or specify a callback?
I'd really like to do away with gpg's keychain nonsense altogether
and use callbacks so that I can manage the data store on my own,
if possible.
Thanks in advance.
I was under the impression I could use LDAP as a keyserver, and
configure dirmngr to use it so that when I needed a key (in this
case to verify a signature) it would contact the LDAP server,
fetch the key.
Instead, it's just saying
123abc: No public key
It's not even trying to contact LDAP (I can see from the logs
nothing is connecting to LDAP)
I desgined the entire application to use LDAP because I knew I'd need
some way to store keys, and apparently, PyGPGME doesn't use it?
dirmngr.conf is configured correctly. It's able to send keys, and store
them on the LDAP server via gpg --send-keys
But even if I explicitly tell it:
ctx = gpg.Context(offline=False)
It doesn't contact LDAP.
Is there some way to at least find out which key it needs so I can
manually fetch the key? Or specify a callback?
I'd really like to do away with gpg's keychain nonsense altogether
and use callbacks so that I can manage the data store on my own,
if possible.
Thanks in advance.