pki-io / pki-io Goto Github PK
View Code? Open in Web Editor NEWMain repo with docs etc.
Home Page: http://pki.io
License: Other
Main repo with docs etc.
Home Page: http://pki.io
License: Other
I was following the Getting started
on the website. I ran all the steps until I hit a nil pointer while executing pki.io org run
.
I am using version pki.io_0.1.2-release1_darwin_amd64.tar.gz
I am currently running OSX 10.11 Beta (15A278b)
The full output was:
Loading admin app
Loading admin config
Loading admin entity
Loading org entity
Registering nodes
Found 1 nodes to register
Reading pairing key: 70ddaa68f47de74fe04f308ada6c8db1
Verifying and decrypting node registration
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x993e]
goroutine 1 [running]:
main.(*AdminApp).RegisterNextNode(0xc208030580)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/adminApp.go:366 +0x13ce
main.(*AdminApp).RegisterNodes(0xc208030580)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/adminApp.go:412 +0x2f3
main.orgRun(0xc20806e690, 0x0, 0x0)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/runOrg.go:22 +0x6b
main.runOrg(0xc20806a9a0, 0x2, 0x2, 0x0, 0x0)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/runOrg.go:42 +0x21b
main.runCommand(0x7fff5fbffb37, 0x3, 0xc20802b880, 0x1, 0x1, 0x0, 0x0)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/pki.io.go:75 +0x69c
main.main()
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/pki.io.go:52 +0x4b7
goroutine 5 [semacquire]:
sync.(*Cond).Wait(0xc208030800)
/usr/local/go/src/sync/cond.go:62 +0x9e
github.com/cihub/seelog.(*asyncLoopLogger).processItem(0xc208050360, 0x42600)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:50 +0xc2
github.com/cihub/seelog.(*asyncLoopLogger).processQueue(0xc208050360)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:63 +0x31
created by github.com/cihub/seelog.newAsyncLoopLogger
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:40 +0x8e
goroutine 6 [semacquire]:
sync.(*Cond).Wait(0xc2080309c0)
/usr/local/go/src/sync/cond.go:62 +0x9e
github.com/cihub/seelog.(*asyncLoopLogger).processItem(0xc208050480, 0x0)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:50 +0xc2
github.com/cihub/seelog.(*asyncLoopLogger).processQueue(0xc208050480)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:63 +0x31
created by github.com/cihub/seelog.newAsyncLoopLogger
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:40 +0x8e
goroutine 7 [runnable]:
sync.(*Cond).Wait(0xc208031600)
/usr/local/go/src/sync/cond.go:62 +0x9e
github.com/cihub/seelog.(*asyncLoopLogger).processItem(0xc2080509c0, 0x0)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:50 +0xc2
github.com/cihub/seelog.(*asyncLoopLogger).processQueue(0xc2080509c0)
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:63 +0x31
created by github.com/cihub/seelog.newAsyncLoopLogger
/var/folders/n1/4ss_2rt10396zylvvdsjqv5cm4l758/T/tmp.2Bw6hUlTsM/go/src/github.com/pki-io/admin/_vendor/src/github.com/cihub/seelog/behavior_asynclooplogger.go:40 +0x8e
Probably something like
// Create 128 bit random keys
id = random_bytes(16)
key = random_bytes(16)
// Concat the id and key and take a cryptographic hash
hash = SHA1(id + key)
// Truncate the hash as it is only for error detection (without leaking anything)
checksum = truncate(hash, 4)
// Append the checksum to the key
key = key + checksum
Then when the id and key are used we can remove the 4 bytes from the end of the key, concat the id and key and generate the truncated sha1 and compare with the attached checksum.
right now with the exception of the man page it is a bunch of binary files, maybe put them in folders?
See #8 for details for now.
Perhaps wait until the CLI UX is established.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.