GithubHelp home page GithubHelp logo

pki-io's People

Contributors

gitter-badger avatar jonbonazza avatar thanasisk avatar zeroxten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pki-io's Issues

nil-pointer executing 'pki.io org run'

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

Add a checksum to pairing keys

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.

Clean up repository

right now with the exception of the man page it is a bunch of binary files, maybe put them in folders?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.