This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Thiemo Mättig <http://maettig.com/> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This has now been moved to a proper GitHub repository: https://github.com/njh/gen-webid-cert
Please submit issues and enhancements there.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://trifacta.github.io/vega/lib/d3.v3.min.js"></script> | |
| <script src="http://trifacta.github.io/vega/vega.js"></script> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| var iris_spec = { |
| // parse a Link header | |
| // | |
| // Link:<https://example.org/.meta>; rel=meta | |
| // | |
| // var r = parseLinkHeader(xhr.getResponseHeader('Link'); | |
| // r['meta'] outputs https://example.org/.meta | |
| // | |
| function parseLinkHeader(header) { | |
| var linkexp = /<[^>]*>\s*(\s*;\s*[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*")))*(,|$)/g; | |
| var paramexp = /[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*"))/g; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <button>connect</button> | |
| <script src="http://cdn.peerjs.com/0.3/peer.js"></script> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>User Registration</title> | |
| <script src="bitcorelatest.js"></script> | |
| <script> | |
| // Derive given private key index.. | |
| function get_bip32_key(path) { |
| openssl genrsa -out private.pem 4096 | |
| openssl spkac -key private.pem > public.spkac | |
| echo "CN=test" >> public.spkac | |
| openssl ca -config openssl.conf -extensions client -spkac public.spkac -out signed.pem -batch | |
| openssl pkcs12 -nodes -export -inkey private.pem -in signed.pem -out cert.p12 | |
| # No certificate matches private key |
| # init | |
| #LDPC="https://localhost:8888/test/put/" | |
| #LDPC="https://melvin.rww.io/workspace/blog/ch5/" | |
| LDPC=$(git config webid.weblog) | |
| KEYFILE=$(git config webid.keyfile) | |
| WEBID=$(git config user.webid) | |
| NAME=$(git config user.name) | |
| DEPICTION=$(git config user.depiction) | |
| USER_AGENT='User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/39.0.2171.65 Chrome/39.0.2171.65 Safari/537.36' |
| var https = require('https'); | |
| var fs = require('fs'); | |
| var roomId = process.env.ROOM_ID; | |
| var token = process.env.TOKEN; | |
| var heartbeat = " \n"; | |
| console.log('logging room : ' + roomId); | |
| var gitter = { |
| #!/usr/bin/env node | |
| // requires | |
| var forge = require('node-forge'); | |
| var fs = require("fs"); | |
| // init | |
| var sshpubkey = {}; | |
| var pubkey; |