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.