Skip to content

Support GnuPG >= 2.1 #8

@penguian

Description

@penguian

See also metomi/rose#2483

National Computational Infrastructure now offers an Open OnDemand service that uses GnuPG 2.2.20.

Currently mosrs/setup.py contains

    agent = dedent("""
        [ -f ~/.gpg-agent-info ] && source ~/.gpg-agent-info
        if [ -S "${GPG_AGENT_INFO%%:*}" ]; then
            export GPG_AGENT_INFO
        else
            eval $( gpg-agent --daemon --allow-preset-passphrase --batch --max-cache-ttl 43200 --write-env-file ~/.gpg-agent-info )
        fi
        """)

This uses the file ~/.gpg-agent-info to set the environment variable GPG_AGENT_INFO. GnuPG since version 2.1 no longer supports this variable. In fact the way that gpg-agent is launched, as well as how sockets are used, has changed since 2.1. See [1], [2].

I have begun working on a fork of mosrs-setup that supports GnuPG both before and after version 2.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions