# FEP-ae97: Client-side activity signing

**URL:** <https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502>\
**Category:** Fediverse Enhancement Proposals\
**Tags:** draft, fep, fep-ae97\
**Created:** [August 18, 2023, 2:48pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502 "2023-08-18T14:48:31Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [May 10, 2025, 6:57pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/21 "2025-05-10T18:57:37Z")

</div>

Updates:

- 2025-04-23: [New registration process](https://codeberg.org/fediverse/fep/pulls/564)
- 2025-05-10: [Security considerations](https://codeberg.org/fediverse/fep/pulls/595)

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 7, 2025, 1:29pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/22 "2025-06-07T13:29:25Z")

</div>

Reverting back to C2S authentication based on actor keys: [#618 - FEP-ae97: Main actor key - fediverse/fep - Codeberg.org](https://codeberg.org/fediverse/fep/pulls/618/files)

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [September 18, 2025, 11:09pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/23 "2025-09-18T23:09:15Z")

</div>

Yet another update, Media API: [#682 - FEP-ae97: Update proposal - fediverse/fep - Codeberg.org](https://codeberg.org/fediverse/fep/pulls/682)

---

<div class="post-metadata">

**Author:** ![thisismissem](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/thisismissem/32/1918_2.png) [@thisismissem](https://socialhub.activitypub.rocks/u/thisismissem)\
**Post date:** [September 19, 2025, 10:36am UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/24 "2025-09-19T10:36:57Z")

</div>

I’m a -1 on that form of the media upload API, rather than trying to use a `.well-known` URI that would need to be registered with IANA, we should instead use the `uploadMedia` endpoint in the Actor document.

This endpoint is defined here: [SocialCG/ActivityPub/MediaUpload - W3C Wiki](https://www.w3.org/wiki/SocialCG/ActivityPub/MediaUpload)

Though it should be possible to upload media without an associated Object payload, and also be possible to delete uploaded media (erroring if it’s attached to a published object)

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [September 20, 2025, 12:00am UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/25 "2025-09-20T00:00:49Z")

</div>

> [@thisismissem](#):
>
> rather than trying to use a `.well-known` URI that would need to be registered with IANA, we should instead use the `uploadMedia` endpoint in the Actor document.

FEP-ae97 deals with portable actors that are managed by clients. These actor documents may be served by multiple servers (gateways) and there is no single endpoint that a client could add to the `endpoints` mapping.

But I agree that introducing yet another well-known URI is not optimal. Maybe there should be a single discovery endpoint similar to `/.well-known/oauth-authorization-server` from [RFC-8414](https://datatracker.ietf.org/doc/html/rfc8414).

> [@thisismissem](#):
>
> Though it should be possible to upload media without an associated Object payload, and also be possible to delete uploaded media (erroring if it’s attached to a published object)

Good point about deleting media. I will probably use `DELETE /.well-known/apgateway-media/{hashlink}` for that.

---

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [September 22, 2025, 9:06am UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/26 "2025-09-22T09:06:36Z")

</div>

I just noticed.

The example in:

> **[FEP-ae97: Client-side activity signing - Fediverse Enhancement Proposals](https://helge.codeberg.page/fep/fep/ae97/#registering-an-actor)**
>
> None

should have an id.

At least if you want to be compatible to

> **[Controlled Identifiers v1.0](https://www.w3.org/TR/cid-1.0/#verification-methods)**
>
> A controlled identifier document contains cryptographic material and lists service
> endpoints for the purposes of verifying cryptographic proofs from, and
> interacting with, the controller of an identifier.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [September 23, 2025, 4:32pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/27 "2025-09-23T16:32:55Z")

</div>

This is not intended to be a valid controller document. Just an ephemeral JSON document with similar fields.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [October 8, 2025, 5:15pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/28 "2025-10-08T17:15:11Z")

</div>

Another update: [#691 - FEP-ae97: Delete media - fediverse/fep - Codeberg.org](https://codeberg.org/fediverse/fep/pulls/691)

- Added `GET /.well-known/apgateway` endpoint for detecting whether the server supports FEP-ae97 clients or not. Thanks @MediaFormat for suggestion!
- Added `DELETE /.well-known/apgateway-media/{hashlink}` endpoint for deleting media. Thanks @thisismissem for suggestion!

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [April 10, 2026, 10:12am UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/29 "2026-04-10T10:12:37Z")

</div>

Update: [#813 - FEP-ae97: Update proposal - fediverse/fep - Codeberg.org](https://codeberg.org/fediverse/fep/pulls/813)

There is now a sequence diagram explaining the registration process: [https://codeberg.org/fediverse/fep/src/branch/main/fep/ae97/fep-ae97.md#registering-an-actor](https://codeberg.org/fediverse/fep/src/branch/main/fep/ae97/fep-ae97.md#registering-an-actor)

New implementations:

- [fep-ae97-web-client](https://codeberg.org/silverpill/fep-ae97-web-client) - proof of concept web client (WASM).
- [Mitra Mini](https://codeberg.org/silverpill/minimitra) - a new feature-complete client for Linux. This is where most of the development will happen going forward.

---

<div class="post-metadata">

**Author:** ![teohhanhui](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/teohhanhui/32/4165_2.png) [@teohhanhui](https://socialhub.activitypub.rocks/u/teohhanhui)\
**Post date:** [June 14, 2026, 8:33pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/30 "2026-06-14T20:33:19Z")

</div>

Is there a reason why this only supports RSA keys?

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 15, 2026, 6:13pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/31 "2026-06-15T18:13:19Z")

</div>

The key returned by a server will be used for creating HTTP signatures. At present, only RSA signatures are supported in the Fediverse, so we have to use RSA keys.

However, a server may include additional keys in its response:

> If the server’s response contains other keys, they SHOULD be added to the `assertionMethod` array as well.

---

<div class="post-metadata">

**Author:** ![teohhanhui](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/teohhanhui/32/4165_2.png) [@teohhanhui](https://socialhub.activitypub.rocks/u/teohhanhui)\
**Post date:** [June 15, 2026, 6:32pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/32 "2026-06-15T18:32:34Z")

</div>

I think it’s understandable to have to use RSA keys _currently_. However, the way this FEP is written, it seems like RSA keys will _always_ have to be used.

> If the server’s response contains other keys, they SHOULD be added to the `assertionMethod` array as well.

And that makes it seem like these are just _in addition_ to the mandatory RSA key.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 15, 2026, 7:11pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/33 "2026-06-15T19:11:59Z")

</div>

I think RSA keys will be required for federation in the foreseeable future, but I don’t want it to sound like they will always be required.

How would you amend the text?

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [June 28, 2026, 4:30pm UTC](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502/34 "2026-06-28T16:30:16Z")

</div>

@teohhanhui I updated the FEP with a clarification: [https://codeberg.org/fediverse/fep/pulls/873](https://codeberg.org/fediverse/fep/pulls/873)

> At a minimum, the server SHOULD provide an RSA key, because other signature types are not widely supported in Fediverse.

[Previous page](https://socialhub.activitypub.rocks/t/fep-ae97-client-side-activity-signing/3502.md?page=1)
