The Central Go Modules Repository

To use GoCenter:
export GOPROXY=https://gocenter.io
0
Stars
UNKNOWN
License
4
Downloads
January 1st 0001
Last Modified
Version:
Loading...

go-ostatus

Working towards a small implementation of OStatus protocol.

Currently undecided on the license.

  • ivucica

Status

  • serve /.well-known/host-meta and /.well-known/webfinger?resource={uri}, supporting username, username@domain, acct:username@domain
  • serve a static stub feed for a user, enough to get Mastodon and GNU social to allow subscription
  • serve a dummy user page
  • serve a 404 on homepage
  • only a dummy user provider exists implementing the UserProvider interface; there is exactly one user, ‘test’
  • serve a salmon endpoint, which currently doesn’t even decode the posted envelope correctly

Setup

Some preparation is needed.

Dummy test user private+public key

Test user requires a private+public key for salmon to work. Generate the keys like this:

# This would require a passphrase which we do not support
# openssl genrsa -des3 -out test_user_private_key.pem 2048
openssl genrsa -out test_user_private_key.pem 2048
openssl rsa -in test_user_private_key.pem -outform PEM -pubout -out test_user_public_key.pem

In future this will be generated internally using crypto/rsa, crypto/x509 and encoding/pem.