Skip to content

Commit

Permalink
Update to signed certificate and hex attribute examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dwaite committed Jan 3, 2024
1 parent 2c7874e commit 36d2fd4
Showing 1 changed file with 31 additions and 39 deletions.
70 changes: 31 additions & 39 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5841,45 +5841,37 @@ The firmware of a particular authenticator model MAY be differentiated using the

For example, the following is an attestation certificate containing the above extension OIDs as well as required fields:

<pre>
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 16909060 (0x1020304)
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN = Example attestation certificate
Validity
Not Before: Aug 1 00:00:00 2014 GMT
Not After : Sep 4 00:00:00 2050 GMT
Subject: C = US, O = WebAuthn WG, CN = Attestation example
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
1.3.6.1.4.1.45724.1.1.4:
....9\&...e;.y}..<
1.3.6.1.4.1.45724.1.1.5:
..*
X509v3 Basic Constraints: critical
CA:FALSE
-----BEGIN CERTIFICATE----- <!-- needs more text to prevent bikeshed emdash markdown bug -->
MIICZzCCAU+gAwIBAgIEAQIDBDANBgkqhkiG9w0BAQsFADAqMSgwJgYDVQQDEx9F
eGFtcGxlIGF0dGVzdGF0aW9uIGNlcnRpZmljYXRlMCAXDTE0MDgwMTAwMDAwMFoY
DzIwNTAwOTA0MDAwMDAwWjBBMQswCQYDVQQGEwJVUzEUMBIGA1UECgwLV2ViQXV0
aG4gV0cxHDAaBgNVBAMME0F0dGVzdGF0aW9uIGV4YW1wbGUwWTATBgcqhkjOPQIB
BggqhkjOPQMBBwNCAAR56jssfElwEGIjDNI/62DlKTFx1IPxAL6FnWsPg5cDAbVG
zdRuz8rj4/MPgentYr0mjUwevTezvL6SqMKu6046o0cwRTAhBgsrBgEEAYLlHAEB
BAQSBBDNjDlcJu3u3mU7AHl9A8o8MBIGCysGAQQBguUcAQEF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7YlMpw/lSTvFYv3qwO3m7H8Dc
-----END CERTIFICATE----- <!-- bikeshed emdash workaround -->
~~~

The attributes above are structured within this certificate as such:

~~~ text
30 21 -- SEQUENCE
06 0B 2B 06 01 04 01 82 E5 1C 01 01 04 -- OID 1.3.6.1.4.1.45724.1.1.4
04 12 -- OCTET STRING
04 10 -- OCTET STRING
CD 8C 39 5C 26 ED EE DE -- AAGUID cd8c395c-26ed-eede-653b-00797d03ca3c
65 3B 00 79 7D 03 CA 3C

30 12 -- SEQUENCE
06 0B 2B 06 01 04 01 82 E5 1C 01 01 05 -- OID 1.3.6.1.4.1.45724.1.1.4
04 03 -- OCTET STRING
02 01 -- INTEGER
2A -- Firmware version: 42
~~~

## TPM Attestation Statement Format ## {#sctn-tpm-attestation}

Expand Down

0 comments on commit 36d2fd4

Please sign in to comment.