Skip to content

Instantly share code, notes, and snippets.

View gklyne's full-sized avatar

Graham Klyne gklyne

  • Oxford, UK
View GitHub Profile
@gklyne
gklyne / 20190212-solid-curl-profile-access.log
Last active February 13, 2019 16:14
Logged in to Solid server, but forbidden to retrieve profile card (using curl)
conina:tools graham$ curl -vk -H "accept: text/html" -H "authorization: Bearer ..." https://localhost:8443/profile/card
* Trying ::1...
* Connected to localhost (::1) port 8443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: localhost
> GET /profile/card HTTP/1.1
> Host: localhost:8443
> User-Agent: curl/7.43.0
> accept: text/html
> authorization: Bearer ...
@gklyne
gklyne / 20190209-curl-access.log
Created February 9, 2019 15:52
Solid server exposes email in unautneticated request for profile page
conina:tools graham$ curl -vk -H "accept: text/turtle" https://localhost:8443/profile/card
* Trying ::1...
* Connected to localhost (::1) port 8443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: localhost
> GET /profile/card HTTP/1.1
> Host: localhost:8443
> User-Agent: curl/7.43.0
> accept: text/turtle
>
@gklyne
gklyne / 20190208-solid-server-gk.log
Created February 8, 2019 16:45
solid-server initialization and console log: login attempt rejected as "unauthorized"
nerthus:solid graham$ npx solid init
? Path to the folder you want to serve. Default is /Users/graham/solid/data
? SSL port to run on. Default is 8443
? Solid server uri (with protocol, hostname and port) https://localhost:8443
? Enable WebID authentication Yes
? Serve Solid on URL path /
? Path to the config directory (for example: /etc/solid-server) ./config
? Path to the config file (for example: ./config.json) ./config.json
? Path to the server metadata db directory (for users/apps etc) ./.db
? Path to the SSL private key in PEM format ../solid-certs/localhost.key
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# Danny Jay Donnel's challenge per https://twitter.com/djdonnell/status/734964072953745408
# See lines 47 onwards
#
# Uses rdflib and rdflib-jsonld libraries; e.g.
import os
@gklyne
gklyne / keybase.md
Created July 6, 2015 14:13
Keybase proof

Keybase proof

I hereby claim:

  • I am gklyne on github.
  • I am gklyne (https://keybase.io/gklyne) on keybase.
  • I have a public key whose fingerprint is 955B 337F 4029 F059 4FBB F52E F861 2D8D 78E5 F5A4

To claim this, I am signing this object: