Javascript Node.JS tools to create RSA public and private keys, a WebId and authentication against a webid-pubkey server.
node bin/generate_keys.js <outdir>
node bin/make_webid.js <webid> <public-key>
<webid>
is the web location where this document will be stored as a JSON-LD file<public-key>
is the path to your public key file
node bin/headers.js <priv-key> <webid> POST https://labs.eventnotifications.net/inbox/ example.jsonld
Use the headers from the previous command in a curl command:
curl -X POST <headers> -H 'Content-type: application/ld+json' --data-binary example.jsonld https://labs.eventnotifications.net/inbox/