cfssljson: fixes parsing of bundle and root certificates (#842)
cfssljson: fixes parsing of bundle and root certificates (#842)

* Fixes parsing of certificate bundles

The format of the json returned is currently:

    resp["result"]["bundle"]["root"]

and

    resp["result"]["bundle"]["bundle"]

The original implementation missed the outer "result" json object.

* Sundry cleanup

- un-nest blocks
- error to stderr
- match rc for other errors (return 1)

geligaoli/cfssl,cloudflare/cfssl,geligaoli/cfssl,geligaoli/cfssl,cloudflare/cfssl,geligaoli/cfssl,cloudflare/cfssl,drcapulet/cfssl,cloudflare/cfssl,drcapulet/cfssl,drcapulet/cfssl,drcapulet/cfssl,drcapulet/cfssl,geligaoli/cfssl