66°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • https://github.com/w3c/activitypub

    Specify public key format

    July 11, 2018

    Currently, Mastodon and Pleroma are publishing public keys on profiles in different formats. I discovered this when I tried to load a Pleroma public key using PHP's built-in openssl, and it failed.

    Compare:

    @Gargron

    "publicKey": {
    "id": "https://mastodon.social/users/Gargron#main-key",
    "owner": "https://mastodon.social/users/Gargron",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvXc4vkECU2/CeuSo1wtn\nFoim94Ne1jBMYxTZ9wm2YTdJq1oiZKif06I2fOqDzY/4q/S9uccrE9Bkajv1dnkO\nVm31QjWlhVpSKynVxEWjVBO5Ienue8gND0xvHIuXf87o61poqjEoepvsQFElA5ym\novljWGSA/jpj7ozygUZhCXtaS2W5AD5tnBQUpcO0lhItYPYTjnmzcc4y2NbJV8hz\n2s2G8qKv8fyimE23gY1XrPJg+cRF+g4PqFXujjlJ7MihD9oqtLGxbu7o1cifTn3x\nBfIdPythWu5b4cujNsB3m3awJjVmx+MHQ9SugkSIYXV0Ina77cTNS0M2PYiH1PFR\nTwIDAQAB\n-----END PUBLIC KEY-----\n"
    },
    

    @0x1C3B00DA

    "publicKey": {
    "id": "https://edolas.world/users/0x1C3B00DA#main-key",
    "owner": "https://edolas.world/users/0x1C3B00DA",
    "publicKeyPem": "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEArOZcTGQ8CQW1Z4aY8okyfaZrGndOcVr2SPAOOmU/C7pDr7mMbOnY\nlA8lUAeUvk294v3j69BBLI5El9x+KcroT99qyAxioLS0W1T60zi+2OfcHoD5apSG\nkWdXKLJkIW0FVnX67eY18TrKKvhoFi7iGtHW+C0XKTkb7DNDqg3pVJj56lDJDn3v\ndUWekKzw4PcKPB4/AR1LCnGPMhRyTsg6kjemw3S95zlw39/TNsNkHCch6332GeaJ\noUkwg1bAnVlAGNszAj8ZL/rPfvPIeHzSFOUfVkeAb4faChrhplcos0ah+b1xoZHm\nBCDxzyMxSkUAQa/q8k5Jp+qE6l6Z+02hXQIDAQAB\n-----END RSA PUBLIC KEY-----\n\n"
    },
    

    It would be great if the encoding format was specified so that we don't continue to have implementations use differing formats.

    Portland, Oregon, USA • 86°F
    Wed, Jul 11, 2018 4:15pm -07:00
Posted in /replies using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv