Allow short & long attestation certificates.

The old code only handled certs with two-byte lengths but the
self-signed cert has a one-byte length.
Merge pull request #22 from ianloic/master

Allow short & long attestation certificates.