Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question