Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #200723 > unrolled thread
| Started by | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| First post | 2018-09-28 17:40 +0200 |
| Last post | 2018-10-03 12:30 +0200 |
| Articles | 16 — 6 participants |
Back to article view | Back to linux.debian.user
Syncing GnuPG between 2 system Jim Popovitch <jim@k4vqc.com> - 2018-09-28 17:40 +0200
Re: Syncing GnuPG between 2 system Roberto C. Sánchez <roberto@debian.org> - 2018-09-28 20:00 +0200
Re: Syncing GnuPG between 2 system deloptes <deloptes@gmail.com> - 2018-09-29 01:50 +0200
Re: Syncing GnuPG between 2 system Jim Popovitch <jim@k4vqc.com> - 2018-09-29 02:40 +0200
Re: Syncing GnuPG between 2 system deloptes <deloptes@gmail.com> - 2018-09-29 09:20 +0200
Re: Syncing GnuPG between 2 system Jim Popovitch <jim@k4vqc.com> - 2018-09-29 15:40 +0200
Re: Syncing GnuPG between 2 system Roberto C. Sánchez <roberto@debian.org> - 2018-09-29 16:00 +0200
Re: Syncing GnuPG between 2 system Jim Popovitch <jim@k4vqc.com> - 2018-09-29 16:20 +0200
Re: Syncing GnuPG between 2 system deloptes <deloptes@gmail.com> - 2018-09-30 01:10 +0200
Re: Syncing GnuPG between 2 system Teemu Likonen <tlikonen@iki.fi> - 2018-09-30 10:00 +0200
Re: Syncing GnuPG between 2 system deloptes <deloptes@gmail.com> - 2018-09-30 19:40 +0200
Re: Syncing GnuPG between 2 system Teemu Likonen <tlikonen@iki.fi> - 2018-09-30 19:50 +0200
Re: Syncing GnuPG between 2 system deloptes <deloptes@gmail.com> - 2018-09-30 20:30 +0200
Re: Syncing GnuPG between 2 system mick crane <mick.crane@gmail.com> - 2018-10-02 13:20 +0200
Re: Syncing GnuPG between 2 system <tomas@tuxteam.de> - 2018-10-02 18:10 +0200
Re: Syncing GnuPG between 2 system mick crane <mick.crane@gmail.com> - 2018-10-03 12:30 +0200
| From | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| Date | 2018-09-28 17:40 +0200 |
| Subject | Syncing GnuPG between 2 system |
| Message-ID | <wD322-1YK-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hello! What is the best way to maintain consistency of a user's gnupg signing/verifying capabilities between 2 or more desktop systems? tia, -Jim P.
[toc] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2018-09-28 20:00 +0200 |
| Message-ID | <wD5dv-3a6-3@gated-at.bofh.it> |
| In reply to | #200723 |
On Fri, Sep 28, 2018 at 11:33:44AM -0400, Jim Popovitch wrote: > Hello! > > What is the best way to maintain consistency of a user's gnupg > signing/verifying capabilities between 2 or more desktop systems? > You may find this article helpful: http://www.connexer.com/articles/openpgp-subkeys It is a bit dated, but I still follow the procedure every year when I extend the expiration of my subkeys. Essentially, what you want is a primary secret key that remains offline (except for when you need to sign other keys and to extend the expiration of the primary and/or subkeys, if you choose to give them expiration dates). Then, the multiple devices each get a signing subkey which can be used for signing only. The only thing not covered in the article is the verifying part, but that is a simple sync of ~/.gnupg/pubring.gpg. You can probably do that via cron or some other file sync approach (maybe that detects when you connect to your home network or whatever). If you really only care about signing and verifying then that is pretty much it. However, note (as covered in the article) if you want to decrypt you will need to copy the same encryption subkey to every device. This is because while a given primary GPG key can have an aribtrary number of signing subkeys, it only makes sense to have one encryption subkey (I am not sure if that is also enforced on the technical side). Regards, -Roberto -- Roberto C. Sánchez
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2018-09-29 01:50 +0200 |
| Message-ID | <wDaGd-6qI-3@gated-at.bofh.it> |
| In reply to | #200731 |
Roberto C. Sánchez wrote: > You may find this article helpful: > > http://www.connexer.com/articles/openpgp-subkeys I think that a copy of .gnupg directory would mostly work. If OP wants to be able to sign or encrypt with same key from more machines, I agree the link is useful, but overcomplicated Copy of the .gnupg will give the base and each intervention should be synced with the key server, so that the clients are subsequently in sync regards
[toc] | [prev] | [next] | [standalone]
| From | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| Date | 2018-09-29 02:40 +0200 |
| Message-ID | <wDbsB-6V6-1@gated-at.bofh.it> |
| In reply to | #200744 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, 2018-09-29 at 01:45 +0200, deloptes wrote: > Roberto C. Sánchez wrote: > > > You may find this article helpful: > > > > http://www.connexer.com/articles/openpgp-subkeys > > I think that a copy of .gnupg directory would mostly work. > If OP wants to be able to sign or encrypt with same key from more > machines, I agree the link is useful, but overcomplicated > > Copy of the .gnupg will give the base and each intervention should be > synced with the key server, so that the clients are subsequently in > sync Copying .gnupg is simple and easy, but not quite what I'm looking for. Imagine having to copy your email folders or address book from system to system, instead of using something like IMAP. I suppose I could build something that uses WebDav to sync .gnupg... I was just hoping something like that existed. -Jim P.
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2018-09-29 09:20 +0200 |
| Message-ID | <wDhHI-2n6-3@gated-at.bofh.it> |
| In reply to | #200745 |
Jim Popovitch wrote: > Copying .gnupg is simple and easy, but not quite what I'm looking for. > Imagine having to copy your email folders or address book from system to > system, instead of using something like IMAP. I suppose I could build > something that uses WebDav to sync .gnupg... I was just hoping something > like that existed. you definitely do not want to upload your secret key anywhere. Keep your private key secret and use a keyserver for the public keys. When you have this setup IMAP is not an issue. and BTW no one said that you should copy your mail folder. regards
[toc] | [prev] | [next] | [standalone]
| From | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| Date | 2018-09-29 15:40 +0200 |
| Message-ID | <wDnDs-5NB-17@gated-at.bofh.it> |
| In reply to | #200747 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, 2018-09-29 at 09:16 +0200, deloptes wrote: > Jim Popovitch wrote: > > > Copying .gnupg is simple and easy, but not quite what I'm looking > > for. Imagine having to copy your email folders or address book from > > system to system, instead of using something like IMAP. I suppose I > > could build something that uses WebDav to sync .gnupg... I was just > > hoping somethinglike that existed. > > you definitely do not want to upload your secret key anywhere. Well of course not, and that is not what this question is about. ;-) You certainly don't want to sync your email account password either, nor your mothers maiden name. ;-) > Keep your private key secret and use a keyserver for the public keys. > When you have this setup IMAP is not an issue. I get the secret key part. Are you saying to forget about syncing public keys (from other's emails) and just let each client download those from a public keyserver? If so, I may be over thinking the need to sync GnuPG between devices. Hmmmm. > and BTW no one said that you should copyyour mail folder. I'm the one who brought that up, as an example, because someone (you?) was saying to copy files around from box to box. I mentioned IMAP as an alternative to copying email files/folders, and that I was looking for a similar technique for GnuPG. -Jim P.
[toc] | [prev] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2018-09-29 16:00 +0200 |
| Message-ID | <wDnWO-5Uk-7@gated-at.bofh.it> |
| In reply to | #200757 |
On Sat, Sep 29, 2018 at 09:37:43AM -0400, Jim Popovitch wrote: > > I get the secret key part. Are you saying to forget about syncing > public keys (from other's emails) and just let each client download > those from a public keyserver? If so, I may be over thinking the need to > sync GnuPG between devices. Hmmmm. > If all you care about is the public keys for verifying signatures, then I say don't bother trying to proactively sync. Just let each system get keys and key updates from the public keyservers as needed. Your original message seemed to inidicate that you wanted to both verify signatures and also produce signatures on multiple machines. That was why I provided the link to the article on subkeys, as I consider that to be the only sensible way to have signing capabilities on multitple devices related to a single GnuPG key. Perhaps I misread your email in that regard. Regards, -Roberto -- Roberto C. Sánchez
[toc] | [prev] | [next] | [standalone]
| From | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| Date | 2018-09-29 16:20 +0200 |
| Message-ID | <wDog9-6fO-1@gated-at.bofh.it> |
| In reply to | #200758 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, 2018-09-29 at 09:50 -0400, Roberto C. Sánchez wrote: > If all you care about is the public keys for verifying signatures, > then I say don't bother trying to proactively sync. Just let each > system get keys and key updates from the public keyservers as needed. OK, that makes sense, and seems to be the popular opinion. > Your original message seemed to inidicate that you wanted to both > verify signatures and also produce signatures on multiple > machines. That was why I provided the link to the article on subkeys, > as I consider that to be the only sensible way to have signing > capabilities on multitple devices related to a single GnuPG > key. Perhaps I misread your email in that regard. You read my email correctly. I did quickly read and have bookmarked your link. Thank you for that. -Jim P.
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2018-09-30 01:10 +0200 |
| Message-ID | <wDwx3-2PK-1@gated-at.bofh.it> |
| In reply to | #200759 |
Jim Popovitch wrote: > On Sat, 2018-09-29 at 09:50 -0400, Roberto C. Sánchez wrote: >> If all you care about is the public keys for verifying signatures, >> then I say don't bother trying to proactively sync. Just let each >> system get keys and key updates from the public keyservers as needed. > > OK, that makes sense, and seems to be the popular opinion. > >> Your original message seemed to inidicate that you wanted to both >> verify signatures and also produce signatures on multiple >> machines. That was why I provided the link to the article on subkeys, >> as I consider that to be the only sensible way to have signing >> capabilities on multitple devices related to a single GnuPG >> key. Perhaps I misread your email in that regard. > > > You read my email correctly. I did quickly read and have bookmarked > your link. Thank you for that. > IMO you sign based on the e-mail you use. IMO it is confusing with multiple machines. A key is associated with identity -> the email. With the sub keys you can add more identities. Still to encrypt you need the private key. It is sufficient to update the private key on the other machines. You usually do not copy it over internet connection. Some people use secure key cards, other encrypted usb sticks or md/sd whatever cards. the public keys are uploaded to the key server after updated (for example signed by you) and downloaded/updated on the other machines when needed. It is up to you to decide how you handle your security. It is a sensitive topic, so general reading and understanding of the matter is required, before proceeding in real life. regards
[toc] | [prev] | [next] | [standalone]
| From | Teemu Likonen <tlikonen@iki.fi> |
|---|---|
| Date | 2018-09-30 10:00 +0200 |
| Message-ID | <wDENX-7GC-1@gated-at.bofh.it> |
| In reply to | #200763 |
[Multipart message — attachments visible in raw view] — view raw
deloptes@gmail.com [2018-09-30 01:09:05+02] wrote: > A key is associated with identity -> the email. With the sub keys you > can add more identities. No. OpenPGP key's user id's (name, comment, email) are with the public master key, not with subkeys. > Still to encrypt you need the private key. No. To encrypt you need recipients' public keys which have an encryption capability [E]. Usually there is an encryption subkey. To decrypt you need the secret key which is associated with the public [E] key that was used to encrypt. -- /// Teemu Likonen - .-.. <https://keybase.io/tlikonen> // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2018-09-30 19:40 +0200 |
| Message-ID | <wDNRf-4J7-3@gated-at.bofh.it> |
| In reply to | #200769 |
Teemu Likonen wrote: > deloptes@gmail.com [2018-09-30 01:09:05+02] wrote: > >> A key is associated with identity -> the email. With the sub keys you >> can add more identities. > > No. OpenPGP key's user id's (name, comment, email) are with the public > master key, not with subkeys. > OK, sorry for adding the sub there - one couldadd more identities to the key and sign/encrypt with the key >> Still to encrypt you need the private key. > > No. To encrypt you need recipients' public keys which have an encryption > capability [E]. Usually there is an encryption subkey. To decrypt you > need the secret key which is associated with the public [E] key that was > used to encrypt. Here is something I do not get - to encrypt I am asked for password - I guess it is for my secret key, no?
[toc] | [prev] | [next] | [standalone]
| From | Teemu Likonen <tlikonen@iki.fi> |
|---|---|
| Date | 2018-09-30 19:50 +0200 |
| Message-ID | <wDO0V-4Nd-1@gated-at.bofh.it> |
| In reply to | #200775 |
[Multipart message — attachments visible in raw view] — view raw
deloptes@gmail.com [2018-09-30 19:39:03+02] wrote: > Teemu Likonen wrote: >> No. To encrypt you need recipients' public keys which have an encryption >> capability [E]. Usually there is an encryption subkey. To decrypt you >> need the secret key which is associated with the public [E] key that was >> used to encrypt. > > Here is something I do not get - to encrypt I am asked for password - > I guess it is for my secret key, no? Encryption requires recipient's public [E] key only. It seems that, in addition to encrypting, you are also signing the message. For that you need a secret (sub)key that has signing capability [S]. -- /// Teemu Likonen - .-.. <https://keybase.io/tlikonen> // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2018-09-30 20:30 +0200 |
| Message-ID | <wDODE-5fV-13@gated-at.bofh.it> |
| In reply to | #200776 |
Teemu Likonen wrote: > Encryption requires recipient's public [E] key only. It seems that, in > addition to encrypting, you are also signing the message. For that you > need a secret (sub)key that has signing capability [S]. Thank you! It is exactly how it is.
[toc] | [prev] | [next] | [standalone]
| From | mick crane <mick.crane@gmail.com> |
|---|---|
| Date | 2018-10-02 13:20 +0200 |
| Message-ID | <wEqSB-3oT-3@gated-at.bofh.it> |
| In reply to | #200775 |
On 2018-09-30 18:39, deloptes wrote: > Here is something I do not get - to encrypt I am asked for password - I > guess it is for my secret key, no? with the mail GPG plugin I never use but tested between 2 email identities. you can choose to generate a passphrase when you first make key pair to encrypt you use the recipient public key and to decrypt they enter their passphrase mick -- Key ID 4BFEBB31
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-10-02 18:10 +0200 |
| Message-ID | <wEvpf-67w-1@gated-at.bofh.it> |
| In reply to | #200826 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Oct 02, 2018 at 12:11:32PM +0100, mick crane wrote: > On 2018-09-30 18:39, deloptes wrote: > > >Here is something I do not get - to encrypt I am asked for password - I > >guess it is for my secret key, no? > > with the mail GPG plugin I never use but tested between 2 email > identities. > you can choose to generate a passphrase when you first make key pair > to encrypt you use the recipient public key and to decrypt they > enter their passphrase To complete this: your private key is stored in an encrypted form: this is to reduce possible damage should anyone with access to your data to steal your private key (they'd need the passphrase for it). If your account is compromised, you have at least the time to revoke your key while "they" brute-force its encryption... You have the revocation key, don't you? Cheers -- tomás
[toc] | [prev] | [next] | [standalone]
| From | mick crane <mick.crane@gmail.com> |
|---|---|
| Date | 2018-10-03 12:30 +0200 |
| Message-ID | <wEMzL-7KC-1@gated-at.bofh.it> |
| In reply to | #200831 |
On 2018-10-02 17:09, tomas@tuxteam.de wrote: > > You have the revocation key, don't you? somewhere safe hopefully -- Key ID 4BFEBB31
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web