Skip to content

Instantly share code, notes, and snippets.

@obenland
Last active June 30, 2025 20:43
Show Gist options
  • Save obenland/0b16debe9e56ef0821a6665637dfe776 to your computer and use it in GitHub Desktop.
Save obenland/0b16debe9e56ef0821a6665637dfe776 to your computer and use it in GitHub Desktop.
# Signature Base Example
[30-Jun-2025 20:40:59 UTC] "@method": POST
"@target-uri": https://wizard.casa/users/obietester/inbox
"@authority": wizard.casa
"created": 1751316059
"content-digest": SHA-256=:yCgSeoGiFo0lOX3rHxqYEfwAgMQneRWvRjBE0Dwoxes=:
"@signature-params": ("@method" "@target-uri" "@authority" "created" "content-digest");created=1751316059;keyid="https://obietester.blog/?author=12082291#main-key";alg="rsa-v1_5-sha256"
# WordPress request args
[30-Jun-2025 20:33:09 UTC] Array
(
[method] => POST
[timeout] => 100
[redirection] => 3
[httpversion] => 1.0
[user-agent] => WordPress/6.8; https://obietester.blog; ActivityPub
[reject_unsafe_urls] => 1
[blocking] => 1
[headers] => Array
(
[Accept] => application/activity+json
[Content-Type] => application/activity+json
[Date] => Mon, 30 Jun 2025 20:33:09 GMT
[Content-Digest] => SHA-256=:YU8PJ8pFFfOsIifPVM/rtzN5DNtlYOr+chr3DbXaYB4=:
[Signature-Input] => wp=("@method" "@target-uri" "@authority" "created" "content-digest");created=1751315589;keyid="https://obietester.blog/?author=12082291#main-key";alg="rsa-v1_5-sha256"
[Signature] => wp=:RAMi5813wb1D7vT83x172rmp0VEzefFqHrV/COL8eF60Oomwd6/UpfQ4mYO0rw66UhRmMnRjWtmWtEoB1mK2uidr1IYfLeq4D+i+QdcEOxKXoQtb4c+mq4nOHlBa08kPuUplPwGA4aa+BEiSBTxXqFii6k2dltlvJf6UQcAOxWngdltRqqONZaNs2Xhsu7mvcf3SeECzqpf0ggyszWMqfI6XxhNgXq9CwMhFpbgPZRd5bVibl5GJZyPbWVmZLYm3ysMlhTOtpdGVLHbNFBNCQ6IoHpU019hrTJoj6uU0MfsjeOPTzMU8j4v0xWlRYtOHH1Ymk+fsT/n9V8ALQhjKdA==:
[Host] => wizard.casa
)
[cookies] => Array
(
)
[body] => {"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://purl.archive.org/socialweb/webfinger","https://w3id.org/fep/844e",{"schema":"http://schema.org#","toot":"http://joinmastodon.org/ns#","lemmy":"https://join-lemmy.org/ns#","manuallyApprovesFollowers":"as:manuallyApprovesFollowers","PropertyValue":"schema:PropertyValue","value":"schema:value","Hashtag":"as:Hashtag","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"moderators":{"@id":"lemmy:moderators","@type":"@id"},"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"movedTo":{"@id":"as:movedTo","@type":"@id"},"attributionDomains":{"@id":"toot:attributionDomains","@type":"@id"},"postingRestrictedToMods":"lemmy:postingRestrictedToMods","discoverable":"toot:discoverable","indexable":"toot:indexable"}],"id":"https://obietester.blog/?post_type=ap_outbox\u0026p=16953","type":"Update","published":"2010-01-30T22:21:33Z","updated":"2025-06-30T15:33:01Z","to":["https://www.w3.org/ns/activitystreams#Public"],"object":{"id":"https://obietester.blog/?author=12082291","type":"Person","attachment":[{"type":"PropertyValue","name":"Powered by","value":"WordPress"},{"type":"Note","name":"Powered by","content":"WordPress"},{"type":"PropertyValue","name":"Blog","value":"\u003Cp\u003E\u003Ca href=\u0022https://obietester.blog/\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noopener noreferrer me\u0022 translate=\u0022no\u0022\u003E\u003Cspan class=\u0022invisible\u0022\u003Ehttps://\u003C/span\u003E\u003Cspan class=\u0022\u0022\u003Eobietester.blog\u003C/span\u003E\u003Cspan class=\u0022invisible\u0022\u003E\u003C/span\u003E\u003C/a\u003E\u003C/p\u003E"},{"type":"Link","name":"Blog","href":"https://obietester.blog/","rel":["nofollow","noopener","noreferrer","me"]},{"type":"PropertyValue","name":"Profile","value":"\u003Cp\u003E\u003Ca href=\u0022https://obietester.blog/author/obenland/\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noopener noreferrer me\u0022 translate=\u0022no\u0022\u003E\u003Cspan class=\u0022invisible\u0022\u003Ehttps://\u003C/span\u003E\u003Cspan class=\u0022ellipsis\u0022\u003Eobietester.blog/author/obenlan\u003C/span\u003E\u003Cspan class=\u0022invisible\u0022\u003Ed/\u003C/span\u003E\u003C/a\u003E\u003C/p\u003E"},{"type":"Link","name":"Profile","href":"https://obietester.blog/author/obenland/","rel":["nofollow","noopener","noreferrer","me"]},{"type":"PropertyValue","name":"Homepage","value":"\u003Cp\u003E\u003Ca href=\u0022http://konstantin.obenland.it\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noopener noreferrer me\u0022 translate=\u0022no\u0022\u003E\u003Cspan class=\u0022invisible\u0022\u003Ehttp://\u003C/span\u003E\u003Cspan class=\u0022\u0022\u003Ekonstantin.obenland.it\u003C/span\u003E\u003Cspan class=\u0022invisible\u0022\u003E\u003C/span\u003E\u003C/a\u003E\u003C/p\u003E"},{"type":"Link","name":"Homepage","href":"http://konstantin.obenland.it","rel":["nofollow","noopener","noreferrer","me"]}],"name":"Konstantin Obenland","nameMap":{"en":"Konstantin Obenland"},"generator":{"type":"Application","implements":{"href":"https://datatracker.ietf.org/doc/html/rfc9421","name":"RFC-9421: HTTP Message Signatures"}},"icon":{"type":"Image","url":"https://secure.gravatar.com/avatar/e0a7a5e080c07aa316811aec3abe4a048407f985c99075aa7d718b0afe4a113e?s=120\u0026#038;d=identicon\u0026#038;r=g"},"published":"2010-01-30T22:21:33Z","summary":"\u003Cp\u003Esdfdsfsdfsdfsdfsdfsfsfsdfsfsfsfbbfghhsdfsdfsdfsfrteryreyrsdfsdfrty5676557dsfsdfertertetfsdfsdfdssdfdssffssdfdsswerwrwerwerffsdfsdfsdfsdfhhfhrhrhrsdfwfsdfsdfsdfewerwerwefsdfsdfsdfsdsfsfsdfdsfwerwerwerwegfgsdfg\u003C/p\u003E\n","summaryMap":{"en":"\u003Cp\u003Esdfdsfsdfsdfsdfsdfsfsfsdfsfsfsfbbfghhsdfsdfsdfsfrteryreyrsdfsdfrty5676557dsfsdfertertetfsdfsdfdssdfdssffssdfdsswerwrwerwerffsdfsdfsdfsdfhhfhrhrhrsdfwfsdfsdfsdfewerwerwefsdfsdfsdfsdsfsfsdfdsfwerwerwerwegfgsdfg\u003C/p\u003E\n"},"tag":[],"updated":"2025-06-30T20:33:01Z","url":"https://obietester.blog/author/obenland/","to":["https://www.w3.org/ns/activitystreams#Public"],"mediaType":"text/html","inbox":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/inbox","outbox":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/outbox","following":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/following","followers":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/followers","streams":[],"preferredUsername":"obenland","publicKey":{"id":"https://obietester.blog/?author=12082291#main-key","owner":"https://obietester.blog/?author=12082291","publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAte3Fn/FrU8+bHw67BeC8\nGe5SUuYOVL98GvvKtPzeHyvF8sPAsrSJBC7ykNUeKqh9RenPkjw5lgt8hOMnXODH\n5LCCFksvuSj6VuVeoTa4cDAhAfcfq7MjyYJqd/WZcKEsrR9ydpu4/wjXWiAuM+zQ\nH24gUwApJkkApBpvnLWZ6pue01NJOUztvx2XLLrYVncl5Rs15kxoQC9qopCpI71d\noc4NiBJGjFY1g629ubaSCFTGJUH3YR+kqbnD3O4eYKgtgg/aEi2wk1lYh767hA+P\nWojzJBtXTXJeZqtOu3XNqlQMU6QghCL+e/ky+0R6Ln/oUgZLRIex2inP9KHYrAMi\nPQIDAQAB\n-----END PUBLIC KEY-----\n"},"manuallyApprovesFollowers":false,"attributionDomains":["obietester.blog"],"alsoKnownAs":["https://obietester.blog/?author=12082291","https://obietester.blog/author/obenland/","https://obietester.blog/@obenland"],"featured":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/collections/featured","discoverable":true,"indexable":true,"webfinger":"[email protected]"},"actor":"https://obietester.blog/?author=12082291"}
[compress] =>
[decompress] => 1
[sslverify] => 1
[sslcertificates] => /srv/htdocs/__wp__/wp-includes/certificates/ca-bundle.crt
[stream] =>
[filename] =>
[limit_response_size] => 1048576
[_redirection] => 3
)
# Mitra Response
[30-Jun-2025 20:33:09 UTC] Array
(
[headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[alt-svc] => h3=":443"; ma=2592000
[content-length] => 17
[content-security-policy] => base-uri 'self'; connect-src 'self'; default-src 'none'; frame-ancestors 'none'; img-src 'self' data:; manifest-src 'self'; media-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self'
[date] => Mon, 30 Jun 2025 20:33:09 GMT
[onion-location] => http://wizardtorwynr54rtpxijnelsadkqglkn6clqkondcsuk3jkw5y75dqd.onion/
[strict-transport-security] => max-age=63072000
[vary] => Origin, Access-Control-Request-Method, Access-Control-Request-Headers
[via] => 1.1 Caddy
[x-content-type-options] => nosniff
[content-type] => text/plain; charset=utf-8
)
)
[body] => invalid signature
[response] => Array
(
[code] => 401
[message] => Unauthorized
)
)
# WordPress request args
[30-Jun-2025 20:33:09 UTC] Array
(
[method] => POST
[timeout] => 100
[redirection] => 3
[httpversion] => 1.0
[user-agent] => WordPress/6.8; https://obietester.blog; ActivityPub
[reject_unsafe_urls] => 1
[blocking] => 1
[headers] => Array
(
[Accept] => application/activity+json
[Content-Type] => application/activity+json
[Date] => Mon, 30 Jun 2025 20:33:09 GMT
[Host] => wizard.casa
[Digest] => SHA-256=YU8PJ8pFFfOsIifPVM/rtzN5DNtlYOr+chr3DbXaYB4=
[Signature] => keyId="https://obietester.blog/?author=12082291#main-key",algorithm="rsa-sha256",headers="(request-target) host date digest",signature="b4kN+EtMsmYB6CetD19bKkgcYqu4IQ92AwkxovENkoruavcpQl9Umtw7utGGBSPlsLW12/wEz7BecpyqYGjTeJaK0DWPMl7dJ0o8r9A1eTj3h6RA9UZSXYdpIYRuWZjOjtsyDAxfORB9L3INq9NIr+kmOHPUDWCqSje2x+xjKxPYzxq7BGDNRBB7YHgCw+AabAX5eB2bCXr4Ip/kWBIUNPUjn784bsE1vXVU3iS6QqCR+MY13oQge7M/krduWbH6U1BF7ZzIvU3M6xJT5YaRBvKlB2eqwW8be4xTUx9IwI4rFyYL3fSAmuTEuwxogRhfTq+Vhfbtd2TrKY9aqBiCPA=="
)
[cookies] => Array
(
)
[body] => {"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1","https://purl.archive.org/socialweb/webfinger","https://w3id.org/fep/844e",{"schema":"http://schema.org#","toot":"http://joinmastodon.org/ns#","lemmy":"https://join-lemmy.org/ns#","manuallyApprovesFollowers":"as:manuallyApprovesFollowers","PropertyValue":"schema:PropertyValue","value":"schema:value","Hashtag":"as:Hashtag","featured":{"@id":"toot:featured","@type":"@id"},"featuredTags":{"@id":"toot:featuredTags","@type":"@id"},"moderators":{"@id":"lemmy:moderators","@type":"@id"},"alsoKnownAs":{"@id":"as:alsoKnownAs","@type":"@id"},"movedTo":{"@id":"as:movedTo","@type":"@id"},"attributionDomains":{"@id":"toot:attributionDomains","@type":"@id"},"postingRestrictedToMods":"lemmy:postingRestrictedToMods","discoverable":"toot:discoverable","indexable":"toot:indexable"}],"id":"https://obietester.blog/?post_type=ap_outbox\u0026p=16953","type":"Update","published":"2010-01-30T22:21:33Z","updated":"2025-06-30T15:33:01Z","to":["https://www.w3.org/ns/activitystreams#Public"],"object":{"id":"https://obietester.blog/?author=12082291","type":"Person","attachment":[{"type":"PropertyValue","name":"Powered by","value":"WordPress"},{"type":"Note","name":"Powered by","content":"WordPress"},{"type":"PropertyValue","name":"Blog","value":"\u003Cp\u003E\u003Ca href=\u0022https://obietester.blog/\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noopener noreferrer me\u0022 translate=\u0022no\u0022\u003E\u003Cspan class=\u0022invisible\u0022\u003Ehttps://\u003C/span\u003E\u003Cspan class=\u0022\u0022\u003Eobietester.blog\u003C/span\u003E\u003Cspan class=\u0022invisible\u0022\u003E\u003C/span\u003E\u003C/a\u003E\u003C/p\u003E"},{"type":"Link","name":"Blog","href":"https://obietester.blog/","rel":["nofollow","noopener","noreferrer","me"]},{"type":"PropertyValue","name":"Profile","value":"\u003Cp\u003E\u003Ca href=\u0022https://obietester.blog/author/obenland/\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noopener noreferrer me\u0022 translate=\u0022no\u0022\u003E\u003Cspan class=\u0022invisible\u0022\u003Ehttps://\u003C/span\u003E\u003Cspan class=\u0022ellipsis\u0022\u003Eobietester.blog/author/obenlan\u003C/span\u003E\u003Cspan class=\u0022invisible\u0022\u003Ed/\u003C/span\u003E\u003C/a\u003E\u003C/p\u003E"},{"type":"Link","name":"Profile","href":"https://obietester.blog/author/obenland/","rel":["nofollow","noopener","noreferrer","me"]},{"type":"PropertyValue","name":"Homepage","value":"\u003Cp\u003E\u003Ca href=\u0022http://konstantin.obenland.it\u0022 target=\u0022_blank\u0022 rel=\u0022nofollow noopener noreferrer me\u0022 translate=\u0022no\u0022\u003E\u003Cspan class=\u0022invisible\u0022\u003Ehttp://\u003C/span\u003E\u003Cspan class=\u0022\u0022\u003Ekonstantin.obenland.it\u003C/span\u003E\u003Cspan class=\u0022invisible\u0022\u003E\u003C/span\u003E\u003C/a\u003E\u003C/p\u003E"},{"type":"Link","name":"Homepage","href":"http://konstantin.obenland.it","rel":["nofollow","noopener","noreferrer","me"]}],"name":"Konstantin Obenland","nameMap":{"en":"Konstantin Obenland"},"generator":{"type":"Application","implements":{"href":"https://datatracker.ietf.org/doc/html/rfc9421","name":"RFC-9421: HTTP Message Signatures"}},"icon":{"type":"Image","url":"https://secure.gravatar.com/avatar/e0a7a5e080c07aa316811aec3abe4a048407f985c99075aa7d718b0afe4a113e?s=120\u0026#038;d=identicon\u0026#038;r=g"},"published":"2010-01-30T22:21:33Z","summary":"\u003Cp\u003Esdfdsfsdfsdfsdfsdfsfsfsdfsfsfsfbbfghhsdfsdfsdfsfrteryreyrsdfsdfrty5676557dsfsdfertertetfsdfsdfdssdfdssffssdfdsswerwrwerwerffsdfsdfsdfsdfhhfhrhrhrsdfwfsdfsdfsdfewerwerwefsdfsdfsdfsdsfsfsdfdsfwerwerwerwegfgsdfg\u003C/p\u003E\n","summaryMap":{"en":"\u003Cp\u003Esdfdsfsdfsdfsdfsdfsfsfsdfsfsfsfbbfghhsdfsdfsdfsfrteryreyrsdfsdfrty5676557dsfsdfertertetfsdfsdfdssdfdssffssdfdsswerwrwerwerffsdfsdfsdfsdfhhfhrhrhrsdfwfsdfsdfsdfewerwerwefsdfsdfsdfsdsfsfsdfdsfwerwerwerwegfgsdfg\u003C/p\u003E\n"},"tag":[],"updated":"2025-06-30T20:33:01Z","url":"https://obietester.blog/author/obenland/","to":["https://www.w3.org/ns/activitystreams#Public"],"mediaType":"text/html","inbox":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/inbox","outbox":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/outbox","following":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/following","followers":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/followers","streams":[],"preferredUsername":"obenland","publicKey":{"id":"https://obietester.blog/?author=12082291#main-key","owner":"https://obietester.blog/?author=12082291","publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAte3Fn/FrU8+bHw67BeC8\nGe5SUuYOVL98GvvKtPzeHyvF8sPAsrSJBC7ykNUeKqh9RenPkjw5lgt8hOMnXODH\n5LCCFksvuSj6VuVeoTa4cDAhAfcfq7MjyYJqd/WZcKEsrR9ydpu4/wjXWiAuM+zQ\nH24gUwApJkkApBpvnLWZ6pue01NJOUztvx2XLLrYVncl5Rs15kxoQC9qopCpI71d\noc4NiBJGjFY1g629ubaSCFTGJUH3YR+kqbnD3O4eYKgtgg/aEi2wk1lYh767hA+P\nWojzJBtXTXJeZqtOu3XNqlQMU6QghCL+e/ky+0R6Ln/oUgZLRIex2inP9KHYrAMi\nPQIDAQAB\n-----END PUBLIC KEY-----\n"},"manuallyApprovesFollowers":false,"attributionDomains":["obietester.blog"],"alsoKnownAs":["https://obietester.blog/?author=12082291","https://obietester.blog/author/obenland/","https://obietester.blog/@obenland"],"featured":"https://obietester.blog/wp-json/activitypub/1.0/actors/12082291/collections/featured","discoverable":true,"indexable":true,"webfinger":"[email protected]"},"actor":"https://obietester.blog/?author=12082291"}
[compress] =>
[decompress] => 1
[sslverify] => 1
[sslcertificates] => /srv/htdocs/__wp__/wp-includes/certificates/ca-bundle.crt
[stream] =>
[filename] =>
[limit_response_size] => 1048576
[_redirection] => 3
)
# Mitra Response
[30-Jun-2025 20:33:09 UTC] Array
(
[headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[alt-svc] => h3=":443"; ma=2592000
[content-length] => 17
[content-security-policy] => base-uri 'self'; connect-src 'self'; default-src 'none'; frame-ancestors 'none'; img-src 'self' data:; manifest-src 'self'; media-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self'
[date] => Mon, 30 Jun 2025 20:33:09 GMT
[onion-location] => http://wizardtorwynr54rtpxijnelsadkqglkn6clqkondcsuk3jkw5y75dqd.onion/
[strict-transport-security] => max-age=63072000
[vary] => Origin, Access-Control-Request-Method, Access-Control-Request-Headers
[via] => 1.1 Caddy
[x-content-type-options] => nosniff
[content-type] => text/plain; charset=utf-8
)
)
[body] => invalid signature
[response] => Array
(
[code] => 401
[message] => Unauthorized
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment