Skip to content

Support for gpgsm #240

@tdussa

Description

@tdussa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions