Skip to content

How to get ID / email after import? #150

Description

@rathboma

Hey folks,

Firstly - THANK YOU for making this library. Amazing work and I don't know what I'd do without it.

I'm building a system in which users can upload their (private) gpg keys for signing files.
So they give me a mycompany.key private key.

Using this, I can successfully run GPGME::Key.import(File.open('mycompany.key')), but...how do I identify the key after that?

This gives me a ImportResult, but I can't find any sort of ID / Email field on that object I can use....

Any ideas? Sorry if this is a dumb question, I'm not super experienced with the GPG utils

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions