I would like to be able to interface to gpgsm in addition to gpg because I'd like to be able to create S/MIME as well as GPG signatures. I believe this should be fairly easily doable; however, setting gpgbinary to gpgsm in the gnupg.GPG init call results in an error message:
ValueError: Error invoking gpg: 2: [GNUPG:] FAILURE option-parser 50331649
gpgsm: invalid option "--fixed-list-mode"
Describe the solution you'd like
Be able to initialize gnupg.GPG with gpgsm as the backend binary to be used.
Describe alternatives you've considered
There seem to be python-gnupg forks(?) that allow for exactly this, for example https://github.com/isislovecruft/python-gnupg; however, those forks are not packaged by, say, Debian or Arch.
Additional context
None.
I would like to be able to interface to
gpgsmin addition togpgbecause I'd like to be able to create S/MIME as well as GPG signatures. I believe this should be fairly easily doable; however, settinggpgbinarytogpgsmin the gnupg.GPG init call results in an error message:Describe the solution you'd like
Be able to initialize gnupg.GPG with
gpgsmas the backend binary to be used.Describe alternatives you've considered
There seem to be
python-gnupgforks(?) that allow for exactly this, for example https://github.com/isislovecruft/python-gnupg; however, those forks are not packaged by, say, Debian or Arch.Additional context
None.