@evan I read that section and implemented the preferred version, not the Mastodon one. That did not work, but I might got confused by other mistakes I made. Will give it another try. Thanks for your help!
achim@social.saarland
Posts
-
#activitypub follow-up question: Thanks to @silverpill I made progress with my "Follow" request sent to Mastodon. -
#activitypub follow-up question: Thanks to @silverpill I made progress with my "Follow" request sent to Mastodon.[...] use a dedicated url (i.e. mine with an appended ./key) and just return an object of type "PublicKey"?
-
#activitypub follow-up question: Thanks to @silverpill I made progress with my "Follow" request sent to Mastodon.@evan Thanks for your response. @silverpill already mentioned the "main-key" fragment. Is that documented somewhere?
I had an implementation that returned just an object of type "PublicKey" if the "./key" endpoint is called.
I checked what I get back from Mastodon if I call my profile with the "main-key" fragment. The result is the full profile.
So should I either refer to the profile url with the fragment and return the full "Person" OR [...]
-
#activitypub follow-up question: Thanks to @silverpill I made progress with my "Follow" request sent to Mastodon.[...] I checked out the Mastodon source code and searched for the error message. My Ruby-skills are limited, but it looks like Mastodon expects the type "Account".
I dont't understand what Mastodon expects from me. Any hint would be highly appreciated.
In the meanwhile I'll give https://activitypub.academy/ ad try ...
-
#activitypub follow-up question: Thanks to @silverpill I made progress with my "Follow" request sent to Mastodon.#activitypub follow-up question: Thanks to @silverpill I made progress with my "Follow" request sent to Mastodon. After fixing a few more issues my current error message from Mastodon is:
"Could not refresh public key https://pub.saar.social/user/achim/key"
This URL returns my full profile having type "Person", which also contains the public key. The type "Person" is also used in the AP book by @evan which I use as a reference.
[...]
-
I try to implement an #activitypub server in #Rust, have problems talking to #mastodon and would appreciate some help.@silverpill Thanks for the hint. This was part of the problem. So I made progress and am now fixing the other things I messed up.

-
I try to implement an #activitypub server in #Rust, have problems talking to #mastodon and would appreciate some help.@silverpill Thanks! Mitra looks very interesting. I'll have a look and will probably pop up in your Matrix channel. I was not aware that there is a maintained ActivityPub project in Rust.
-
I try to implement an #activitypub server in #Rust, have problems talking to #mastodon and would appreciate some help.@mariusor That looks great! Thanks for the hint, I'll have a closer look.
-
I try to implement an #activitypub server in #Rust, have problems talking to #mastodon and would appreciate some help.[...]
{
"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1"],
"id":"https://pub.saar.social/user/achim/key",
"type":"Key",
"publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIIBI[...]IDAQAB\n-----END PUBLIC KEY-----\n",
"owner":"https://pub.saar.social/user/achim"
}But my follow http call gets this back from Mastodon:
{"error":"Unable to fetch key JSON at https://pub.saar.social/user/achim/key"}
Can somebody give me a hint how to figure out what the problem is?
-
I try to implement an #activitypub server in #Rust, have problems talking to #mastodon and would appreciate some help.I try to implement an #activitypub server in #Rust, have problems talking to #mastodon and would appreciate some help.
I try to send a follow action to Mastodon. The request is - as far as I can tell - signed according to https://docs.joinmastodon.org/spec/security/
The "keyId" of the signatrue is "https://pub.saar.social/user/achim/key". Mastodon calls this url as expected and my server returnst: [...]