9 ms·
GPG and me (2015)
- rasengan 9y agoGpg still has a lot of uses. There isn’t one solution for every problem nor is there a single solution for any single problem. We need to have as many tools as possible if we the people want to win.
- Jtsummers 9y agohttps://news.ycombinator.com/item?id=9104188 https://news.ycombinator.com/item?id=9104188 This has been posted in the past, and there's a pretty good discussion on it with more from moxie here.
- throwaway7767 9y ago> When I receive a GPG encrypted email from a stranger, though, I immediately get the feeling that I don’t want to read it. Sometimes I actually contemplate creating a filter for them so that they bypass my inbox entirely, but for now I sigh, unlock my key, start reading, and with a faint glimmer of hope am typically disappointed. I wonder what proportion of his plaintext email from strangers is interesting. For me it's close to 0%, mostly spam or people demanding I do free work to fix issues in open source code. I really doubt this has much to do with GPG mails specifically.
- jandrese 9y agoI wonder if he has an especially onerous password? It doesn't seem like it should be that big of a burden to pop in the password for an email. I guess he has it set for ultra-paranoid mode where you have to enter the password every time you even think about touching the mail. I do agree that GPG has been largely a failure. A tool too general and too vaguely defined for the average user. A powerful tool but only really usable by crypto nerds. What's worse, the key distribution problem was never really solved and that's the most critical component of the entire system. Even today there are scant few email clients that will query the keyservers for you.
- deleted 9y ago[deleted]
- lrvick 9y agoSince my GPG subkeys are in my yubikey I literally just tap it to decrypt, ssh, or sign commits. I also plug my key into my phone and tap it to decrypt/sign email or decrypt passwords too. I have sucessfuly migrated dozens of friends and engineering teams at 3 companies to daily use of gpg via this same non-intrusive setup. GPG is fairly pain free (and far more secure) if you put in the one time effort to set up a security token.
- Jtsummers 9y ago> I also plug my key into my phone and tap it to decrypt/sign email or decrypt passwords too. I assume Android. How easy is this to set up? https://www.yubico.com/support/knowledge-base/categories/articles/can-yubikey-4c-plugged-directly-android-phones-tablets-usb-c-ports/ https://www.yubico.com/support/knowledge-base/categories/art... It seems to be a workable option with PGP/GPG, but do you have to plug it in per use rather than leave it in as this post says (to use the onscreen keyboard)?
- lrvick 9y agoYou can just set "always show virtual keyboard" in accessibility options (at least in in android 8.0+).
- Jtsummers 9y agoI'm not, primarily, an Android user so I wasn't aware of that option. Thanks. I have a USB-A yubikey and just got a laptop with USB-C ports and an adaptor so I guess I'll give this a go on my backup Android phone tonight.
- jandrese 9y agoDid you have your coworkers publish their public keys in the internet keyservers or did you have them all exchange their public keys by hand?
- lrvick 9y agoTo contrast this, in the last bug bounty page I set up I strongly suggested researchers gpg encrypt email to submit their findings. I really didn't want sensitive issues directly exposed to our entire support team. As it turns out, the gpg encrypted emails which were only a small fraction of the ones we received, and made up the substantial majority of actionable issues we rewarded on. If a security researcher is not capable of encrypting email to a public key, they probably are not bringing me anything worth my time to read.
- nimbius 9y agothis smacks of he usual “hard work is hard” argument and i for one am sick of hearing the excuses. gpg has had ecdh and curve25519 for an entire version, rainloop and thunderbird and mutt all handle pgp seamlessly. having to trust a key is a bit archaic, but this is all worth it for he one reason openpgp exists: security
- kenbaylor 9y agoGPG has multiple uses. 1) it is now much easier to use with Mac mail. The GUI is simple to use once configured. Gpgtools.org has done a great job. 2) when you ‘sign’ email it appears visibly different than otherwise to the recipient and can be a good anti-phishing indicator. 3) I agree with Moxie that GPG encrypted mail is rare. S/MIME with its support from Microsoft, seems to be winning in that space.
- sigjuice 9y agoMail on iOS/macOS and Thunderbird support S/MIME as well.
- smnrchrds 9y agoDoes anyone still offer S/MIME certificates?
- Shoothe 9y agoComodo does [0]. S/MIME and X.509 generally are used in enterprise scenarios where people want one corporate Certification Authority and thus keeping things simple (the underlying encoding is far from simple but that's another topic). [0]: https://www.comodo.com/home/email-security/free-email-certificate.php https://www.comodo.com/home/email-security/free-email-certif...
- lrvick 9y agoTo add to this: * Add an authentiction subkey and you now have a drop-in-replacement for ssh keys. * Password managers like "Password Store" use a git repository full of gpg encrypted files as a backend allowing for a secure password management solution that only decrypts the credential you need vs decrypting -all- of them at once like most popular tools. * If you make use of the solid smartcard support you can even avoid your keys ever being exposed to system memory where malware can steal them.
- Shoothe 9y agoI think it would be good to read this post remembering that Moxie is competing with OpenPGP with his Signal app. While all what's written is true OpenPGP at it's core is surprisingly simple standard for truly decentralized trust management. A little bit of fresh thinking can be used to revitalize OpenPGP, like integrating Keybase.io-like identities (e.g. verified Github/Twitter profile): https://tools.ietf.org/html/draft-vb-openpgp-linked-ids-01 https://tools.ietf.org/html/draft-vb-openpgp-linked-ids-01
- Joeboy 9y agoFor messaging, I think Signal competes with OpenPGP only in the same sense that it competes with telex machines.
- Shoothe 9y agoCould you elaborate on what do you mean by that? It's possible to use OpenPGP in instant messaging [0] and it works fine (transparent encryption and decryption in a client) although there are newer solutions more suited to IM [1]. [0]: https://xmpp.org/extensions/xep-0027.html https://xmpp.org/extensions/xep-0027.html [1]: https://xmpp.org/extensions/xep-0384.html https://xmpp.org/extensions/xep-0384.html
- dsacco 9y ago> It's possible to use OpenPGP in instant messaging [0] and it works fine (transparent encryption and decryption in a client) For some definitions of "possible" and "works fine", sure. But OpenPGP is not natively designed for instant messaging. You can use OpenPGP as the public-key component of a cryptosystem that is suited for instant messaging, but at that point you're better off just going with an OTR protocol that already has the key-exchange and secret-key encryption functionality baked into it. Beyond that, the page you're citing mentions this: > The method defined herein has the following security issues: > Key exchange relies on the web of trust model used on the OpenPGP keys network. > There is no mechanism for checking a fingerprint or ownership of a key other than checking the user IDs on a key. > When the recipient is not mentioned in the encrypted body, replay attacks are possible on messages. > Replay of the signed <presence/> status is possible. > It relies on signing or encryption of XML character data; therefore, it does not support signing or encryption of <iq/> stanzas, and it allows signing of the presence <status/> element and encryption of the message <body/> element only. > Thus the method is not acceptable when signing or encryption of full stanzas is required. It does not enable both signing and encryption of a stanza, only signing of the presence status and encryption of the message body. In particular, the warts of using an asynchronous protocol for a synchronous communication system are exposed here: you can replay the signed presence status, which sort of defeats the purpose of having an open connection. In a secure, synchronous communication channel, the "freshness" checks incorporate non-repudiation. This is before we even address the problem of not being able to verify key ownership aside from the user IDs.
- lmm 9y agoSignal is useless for the only people it could be useful for. Most people don't need better-than-TLS security, and for those people Facebook Messenger or any number of other options are perfectly adequate. The people who do need better security are precisely the same people who a) can't afford to use phone numbers as IDs, not even burner phones, when they mean a hostile government who captures one person can immediately start tracing the location of all their contacts and b) can't afford to trust an unaudited server run by a company that could relatively easily be forced to cooperate with a hostile government (particularly when the encryption protocol uses a novel semi-TOFU construct that makes attacks a lot more plausible when the server is cooperating). There are threat models where TLS is good enough. There are (mostly quite paranoid) threat models where GPG, for all its usability issues, makes sense. There is no threat model where Signal makes sense. Finally, GPG's usability issues are contingent and fixable. Probably in GPG-the-program, and certainly without abandoning OpenPGP-the-protocol. Throw a bit of money at it, get an actual UX designer to spend a couple of months on a nice UI, and who knows where that would take us? Whereas Signals flaws are there by design.
- theptip 9y ago> Most people don't need better-than-TLS security I agree with the literal interpretation of this statement; most Signal users don't need that level of security. But many users want a level of security that makes it much harder for their government to intercept their messages, and I believe Signal is better for that than Facebook Messenger. I think you could make a convincing argument that Whisper could be strong-armed by the US government, but for me it seems unlikely that they could be compelled to install a back door by Turkey, Russia, China, or some other such illiberal regime (at least, less likely than Google/Facebook). For example, see https://www.cultofmac.com/426440/whatsapp-wins-encryption-victory-in-brazilian-courts/ https://www.cultofmac.com/426440/whatsapp-wins-encryption-vi..., where WhatsApp (which uses the Signal protocol) was not able/willing to hand over message data to a Brazilian court. That is the feature that Signal users are choosing that FB Messenger does not have.
- Joeboy 9y agoTo add to this, I believe Signal is open source and has reproducible builds so its chances of getting away with mischief on a large scale are much lower than Facebook's / WhatsApp's. Even if you (weirdly IMO) think Whisper Systems is less trustworthy than Facebook.
- kyberias 9y ago"Mailpile had to write 1400 lines of python code just to interface with a native GnuPG installation for basic operations, and it still isn’t rock solid." But... 1400 lines of code is not that much.
- feelin_googley 9y agoHow does a user send a file of arbitrary type through Signal? Is it true that PGP has uses that do not overlap with Signal? If no, then please ignore the rest of this comment. Is it true that a block cipher has uses that do not overlap with a stream cipher? Signing and verfiying files.1 Encrypting files. From what I have read, Signal is concerned with messaging. But there is more to PGP than just messaging. Files that need to be signed/verified or encrypted do not necessarily always have to be sent to or received from others. The blog post singles out one particular use of PGP, i.e. email, and complains about one implementation of PGP: GPG. Maybe the GPG software is not user friendly. Maybe PGP email is hopelessly complex. It is easy to make those arguments. Many have done it before. However PGP encryption, in the general sense, not when used for email and not necessarily as implemented by the GPG software, can still be useful. Files can still be useful, even when not in the context of the "messaging" business, Twitter subsidiaries, Facebook subsidiaries, advertising, smartphones, etc. 1 I prefer ed25519 for signing and verifying files but perhaps there are advantages to PGP I am not aware of.
- Shoothe 9y ago> But there is more to PGP than just messaging. Exactly, OpenPGP is more like a framework for many things and the underlying structures support cryptographic agility (switching algorithms). OpenPGP can also be used to authenticate to servers (like SSH keys) and for broadly defined trust management.
- thomastjeffery 9y agoGPG is hard to use with email. That is because web clients like don't support it, and offline clients require setting it up. It's a rather unfortunate reality, because GPG itself is fantastic.