GithubHelp home page GithubHelp logo

Setup PGP about dotfiles HOT 3 OPEN

jackboberg avatar jackboberg commented on June 25, 2024
Setup PGP

from dotfiles.

Comments (3)

jackboberg avatar jackboberg commented on June 25, 2024

I have a local function that seems to provide most of this, using 1Password to store exports from gpg:

setup_pgp () {
    msg_info "==> Setting up pgp keys…"

    # Authenticate with my.1password.com:
    eval $(op signin my)

    op get document XXXXXX | gpg --import
    op get document XXXXXX | gpg --allow-secret-key-import --import
    op get document XXXXXX | gpg --import-ownertrust

    msg "==> Testing pgp setup…"
    # may need to restart agent here
    # `echo RELOADAGENT | gpg-connect-agent`
    echo "test" | gpg --clearsign
}

I'm not sure yet how I feel about committing the 1Password object IDs... 🤔

Additionally reviewing if I want to add ~/.gnupg/gpg.conf to rcm here, or as a part of my 'secure' files managed in iCloud Drive.

auto-key-retrieve
no-emit-version
default-key XXXXXXXXXX

from dotfiles.

jackboberg avatar jackboberg commented on June 25, 2024

This is the process I used to create the files referenced from 1Password:

gpg -a --export >mypubkeys.asc
gpg -a --export-secret-keys >myprivatekeys.asc
gpg --export-ownertrust >otrust.txt

from dotfiles.

enewbury avatar enewbury commented on June 25, 2024

You could also list objects with

op list documents

then filter the json array by the overview.title field, grabbing the uuid field so then you can op get document <uuid>
Granted once you get into parsing/filtering arrays, it might make sense to put this in a little ruby script or something.

from dotfiles.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.