Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotfiles.