publicKeyPem placement in an activitypub response to resource query.

When making an activitypub request from either a lemmy or mastodon server (I haven’t tried others)

(eg curl https://programming.dev/c/activitypub -A ‘WhizzleGig/0.1;’ -H ‘Accept: application/activity+json’),

for their context they include…


<span style="color:#323232;">"@context":                                                                                                                                                                                                                                                                                                                                                                                                                           
</span><span style="color:#323232;">    "https://www.w3.org/ns/activitystreams",                                                                                                                                                                                                                                                                                                                                                                                             
</span><span style="color:#323232;">    "https://w3id.org/security/v1",                                                                                                                                                                                                                                                                                                                                                                                                      
</span><span style="color:#323232;">    {
</span>

(note: [w3id.org/security/v1), and for the security portion of the record, they return something like …


<span style="color:#323232;">"publicKey": {                                                                                                                                                                                                    
</span><span style="color:#323232;">    "id": "https://programming.dev/c/activitypub#main-key",                                                                                                                                                         
</span><span style="color:#323232;">    "owner": "https://programming.dev/c/activitypub",                                                                                                                                                               
</span><span style="color:#323232;">    "publicKeyPem": "-----BEGIN PUBLIC KEY-----nBlahBlahBlahn-----END PUBLIC KEY-----n"                                                                                                                                                           
</span><span style="color:#323232;">  },
</span>

(note how publicKeyPem and owner are both nested inside publicKey).

However, upon reviewing w3id.org/security/v1 and w3id.org/security, my interpretation is that those should not be nested inside publicKey but should be at the same level. Am I misreading something?

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