Moon,

hours later i give up, i cannot figure out how to extract the stubs from a yubikey onto a new machine so i can pgp sign things. every command on the internet does not work.

Moon,

"just use gpg --card-edit it will re-add the stubs" "sometimes it won't, run this command" "operation not supported by device"

also gnupg is 1980's-era software usability.

lanodan,
@lanodan@queer.hacktivis.me avatar

@Moon stubs?
Using an openpgp smartcard should be just a matter of importing the public key and marking it as ultimate trust.

Moon,

@lanodan where do i get the public key is the problem.

lanodan,
@lanodan@queer.hacktivis.me avatar

@Moon Ah uuuuh… good luck.

animeirl,

you dont

Moon,

@animeirl @lanodan I guess I can't ever use PGP again with these keys then lol

lanodan,
@lanodan@queer.hacktivis.me avatar

@Moon @animeirl Which is such an OpenPGP moment…
Like GnuPG is so good at screwing itself that I would have lost the keys so many times if it weren't for me having a copy of the pubkeys on my website + using a smartcard.
(In fact if my smartcard dies so does my keys because it fucked it's files…)

Bloody x509 is less annoying to use.

parappanon,

@lanodan @Moon @animeirl Agreed, fuck GPG. Surprised that I have yet to actually upload my public key to the site, must be because it's such a pain to use subkeys properly and I don't even get opportunities to use encrypted e-mail anyway.

lanodan,
@lanodan@queer.hacktivis.me avatar

@parappanon @Moon @animeirl Yeah subkeys should basically be set once and never touched ever again because you'll just end up with things encrypted for the wrong subkey, specially given the last few years of keyservers being in limbo.

parappanon,

@lanodan @Moon @animeirl Yeah, that's true. I thankfully don't use any keyservers myself but I have indeed encrypted stuff that I should have done with a subkey with my main key instead.
I'm considering to just switch from PGP to something like AGE instead for many reasons, and what you've said about the keyservers being in limbo now is about to fully convince me to move on from PGP.

animeirl,

limbo? everything but openpgp.org seems dead

lanodan,
@lanodan@queer.hacktivis.me avatar

@animeirl @parappanon @Moon Yeah, as in pretty nearly dead and going to be pretty soon.

parappanon,

@lanodan @Moon @animeirl Seems about right. What alternatives to PGP would you recommend, then? I've heard of AGE, but I don't think it's that popular plus it doesn't have a website of it's own, just a GitHub repo which makes me a bit afraid since I dislike GitHub and how it's taken over the open source space despite not even being open source itself.

lanodan,
@lanodan@queer.hacktivis.me avatar

@parappanon @Moon @animeirl The thing with OpenPGP is it does too many things, probably because it was one of the first strong cryptographic suite.

  • To encrypt random files and being able to transfer them I use reop.
  • To sign software archives I use signify (via minisign).
  • To send messages with encryption I would probably use XMPP+OMEMO, because integration of things other than S/MIME with x509 (costy) is non-existent in email clients and Matrix for me is just anything but reliable (ie. messages dropped silently and many failures to sync).
ignaloidas,
@ignaloidas@not.acu.lt avatar

@lanodan @parappanon @Moon @animeirl tbh the problem with OpenPGP isn't that it tries to do too many things (unified cryptographic identity is good actually), it's that it didn't/couldn't evolve with how people use their computers and is stuck in the 90's. I have written in length about this somewhere, but can't find it now :(

lanodan,
@lanodan@queer.hacktivis.me avatar

@ignaloidas @Moon @animeirl @parappanon GnuPG has a lot of problems, I'm not even sure if any of it actually could be considered to be working well, not as in "Works For Me" which is a mostly useless baseline that it still wonderfully fails at but as in correctness like explained in https://danluu.com/why-benchmark/

That said cryptographic identities makes me want to run away because they typically have unusable or non-existent key rotation in place, specially in the clients that people actually use ~daily. Which is why for me cryptography is best used to enhance good protocols that can be relied upon for things like identity management (and that's not email, there's no identity with email, only addresses to throw things at).

ignaloidas,
@ignaloidas@not.acu.lt avatar

@lanodan @Moon @animeirl @parappanon
OpenPGP had this one great property that it was essentially universal, instead of how it works these days - it wasn't "Here's my identity I will sign things with, here's my identity for encrypting content, here's my identity for secure communication" - instead it was "Here's my identity" and that's it. But because it got stuck in the 90's, that it no longer applies.

"Cryptographic identity" is any kind of identity that has cryptographic key(s) associated with it. In the case of most cryptosystems, that identity is the key (fediverse is kiiinda in this group). In OpenPGP, it's a bit more - it's a (essentially static) collection of keys, with some metadata. In my opinion, so far the best implementation of cryptographic identity is Keybase's - it's a chain of key management operations - even if centrally stored. I have a bunch of ideas on how to build an open cryptographic identity that doesn't suck, but I just can't bring myself to start doing it (ADHD things 😢).

lanodan,
@lanodan@queer.hacktivis.me avatar

@ignaloidas @Moon @animeirl @parappanon Fediverse outside of Friendica and maybe derived doesn't have cryptographic identities.
For example, on fedi I am https://queer.hacktivis.me/users/lanodan that's the identity and the only keys are server-owned and not authoritative, they're just an internet ressource like an avatar (and only used for signed-fetches).

Which leaves a lot of problems and brittle/complex things out:

  • Key rotation doesn't involves cryptography
  • Account migration doesn't involves cryptography, only double-links between old and new accounts
  • Having the key being leaked or lost doesn't means identity loss
  • Pretty much no need for key revocation, only the current linked key is seen as valid
  • Basically no need for stuff like TOFU, x509, Web-of-Trust, separated PKI, …
feld,
@feld@bikeshed.party avatar

Mmmm I swear there's a command for that. I'll check soon

r000t,
@r000t@ligma.pro avatar

@Moon
Aaaaand that was gonna be my advice.

Try it in WSL? I just got a new key and need to set it up from scratch on a fresh Windows anyway so I'll keep notes for you.

Moon,

@r000t I'm on mac now.

r000t,
@r000t@ligma.pro avatar

@Moon sux. I can spin up a hackintosh and give it a go later on if you need though.

I recall having to do things in the following order:

  1. Generate private key on-device
  2. Export a CSR
  3. Sign it with CA (if applicable)
  4. Load the resulting cert onto the device, which does not erase the private key
Moon,

@r000t don't bother. I'll just generate new keys at some point, it's just a pain because I'm using the key right now as an SSH key. also macos is a joke, I have experienced so many problems that indicate a deep failure to understand developer workflow

r000t,
@r000t@ligma.pro avatar

@Moon Apple marketing material expressing "productivity" always shows goofy high-school tier projects/notes or video/photo editing. Maybe SketchUp if they're feeling super boring. Apple products are not tools, they are toys. They are some of the most secure toys you can buy, but at the end of the day they are toys.

My missing Yubikey served all of these roles (FIDO, SSH, OpenPGP) at the same time, the OpenPGP was simply used by the SSH agent.

The gpg --card-edit every time the device is inserted is a real thing tho, btw. At least on Windows. Linux I believe needs udev rules and I got no idea what BSD/MacOS wants.

Moon,

@r000t apples are good just not so much for hardcore dev. maybe webdev. but i have to jump through hoops to do almost anything i want to do.

r000t,
@r000t@ligma.pro avatar

@Moon
Yeah that's why they invented Docker. On every OS that's not Linux, Docker runs inside a Linux VM. This makes everything Just Work, but it also makes a great place to hide malware.

Moon,

@r000t maybe i'll install the vmware player and just use linux all day

r000t,
@r000t@ligma.pro avatar

@Moon
I thought Macs had libvirt

orekix,
MischievousuTomatosu,

@orekix @r000t @Moon this is weird, because i have a friend who only uses macos and ue does webdev and he doesn't complain about that

Moon,

@MischievousuTomatosu @r000t @orekix

> I've found three separate package managers for OS X: Fink, MacPorts & Homebrew.

most people use homebrew now, but it's still an addon that you can't assume anybody has and the official installation method on os x is still install every dependency along with the app in its directory.

Moon,

@MischievousuTomatosu @orekix @r000t also you can get numerous good IDEs on MacOS now so you don't have to use TextMate. I use Visual Studio Code, which works great except the ssh integration doesn't work right with my yubikey ssh agent because, again, the OS is a joke and can't handle it right.

lelouchebag,

@Moon @MischievousuTomatosu @orekix @r000t All you need is vi :cirnoBliss:

r000t,
@r000t@ligma.pro avatar

@lelouchebag no thanks I'm an Ekko main and he's a little pissed@her @MischievousuTomatosu @Moon @orekix

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • InstantRegret
  • slotface
  • osvaldo12
  • kavyap
  • khanakhh
  • Durango
  • megavids
  • everett
  • cisconetworking
  • normalnudes
  • tester
  • ngwrru68w68
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • anitta
  • JUstTest
  • lostlight
  • All magazines