I'm adding support for multiple public keys per actor in Smithereen for future-proofing purposes.
-
@silverpill are we allowing Mastodon guide ActivityPub development again, when alternatives exist?
-
@grishka yeah, you need to let the crypto library autodetect the type of key. OpenSSL manages to do it:
curl -s https://federated.id/actors/a1517c06-7131-4437-84b0-025837e9da39 | jq -r .publicKey.publicKeyPem | openssl pkey -pubin -text
@mariusor Java's built-in crypto API can't do that unfortunately as far as I know. I guess I'll have to try every supported type on every key until I find one that works
-
@silverpill are we allowing Mastodon guide ActivityPub development again, when alternatives exist?
-
@silverpill yep. Your bane, more JSON-LD bullshit.

@grishka -
@silverpill yep. Your bane, more JSON-LD bullshit.

@grishka@mariusor @silverpill Smithereen is one of the few ActivityPub implementations that actually uses JSON-LD contexts not just for LD signatures but also when parsing data, so not a problem for me in particular
-
@mariusor Java's built-in crypto API can't do that unfortunately as far as I know. I guess I'll have to try every supported type on every key until I find one that works
@grishka it should be. The ASN package that gets encoded to PEM should have the algorithm value set:
curl -s https://federated.id/actors/a1517c06-7131-4437-84b0-025837e9da39 | jq -r .publicKey.publicKeyPem | openssl asn1parse
-
@silverpill yep. Your bane, more JSON-LD bullshit.

@grishka -
@mariusor @grishka For example,
assertionMethodspecifies keys for signing,keyAgreementfor encryption https://www.w3.org/TR/cid/#verification-relationships -
@silverpill I see... Got a link to that, I should update my stuff...
-
@silverpill I see... Got a link to that, I should update my stuff...
@silverpill nevermind, I found it in the FEP.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login