S
S
Sergey Burduzha2020-06-16 21:22:53
linux
Sergey Burduzha, 2020-06-16 21:22:53

How to work with gpg and pass correctly?

Good evening.

I work behind 2 machines, at home and at work.
So I want to encrypt passwords from projects and upload them to github through commits, and take them back on the robot and see the passwords through the pass utility when necessary.

It seems to have understood everything, but there are problems with the transfer.

First I initialize the keys:
gpg --gen-key

Then I export the public key
gpg --export -a key_id > public.key

AND the private one.
gpg --export-secret-key -a key_id > private.key

Well, at work I import
And at work in the terminal I will simply enter the gpg command to generate the .gnupg directory

gpg --import public.key
gpg --import private.key


And then you can work with them?

Thanks in advance for the explanations.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2020-06-16
@alfss

take 1password and enjoy yourself or others

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question