mozilla/jwcrypto — pull request #25 by ozten (2012-06-26 17:35:56+00:00)
Title: Fixing check-cert algorithms, adding CLI arguments support

I was unable to run `bin/check-cert` against a newly generated chained cert.

I found the ergonomics of using certs and public keys directly in the CLI challenging.

This PR does a couple things:
1) require DS and RS modules
2) Add optimist and

Check certificate
Usage: node ./bin/check-cert.js

Options:
-p, --public public key to sign [required]
-h, --help display this usage message
-c, --certificate A certificate which you want to examine. [required]
-d, --debug Debug mode, useful for development of this tool [boolean] [default: false]

3) Minor style cleanup