Skip to content

Commit

Permalink
piv: document that attestation certificate must not be used for tls
Browse files Browse the repository at this point in the history
  • Loading branch information
ericchiang committed Apr 26, 2020
1 parent 78b51b3 commit ae8d862
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions piv/key.go
Expand Up @@ -307,6 +307,10 @@ func (yk *YubiKey) AttestationCertificate() (*x509.Certificate, error) {
// certificate. This can be used to prove a key was generate on a specific
// YubiKey.
//
// Certificates returned by this method MUST NOT be used for anything other than
// attestion or determining the slots public key. For example, the certificate
// is NOT suitable for TLS.
//
// If the slot doesn't have a key, the returned error wraps ErrNotFound.
func (yk *YubiKey) Attest(slot Slot) (*x509.Certificate, error) {
cert, err := ykAttest(yk.tx, slot)
Expand Down

0 comments on commit ae8d862

Please sign in to comment.