Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions appattest/verify_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import (
"crypto/x509"
"encoding/asn1"
"encoding/hex"
"encoding/pem"
"fmt"
"os"
"reflect"
"slices"
"time"
Expand Down Expand Up @@ -81,14 +79,6 @@ func VerifyAttestationPure(in *VerifyAttestationInputPure) (VerifyAttestationOut

// get the leaf certificate (first in chain)
leafCert := chain[0]
pblock := pem.Block{
Type: "CERTIFICATE",
Bytes: leafCert.Raw,
}
if err := pem.Encode(os.Stdout, &pblock); err != nil {
panic(err)
}
fmt.Println()

// > 2. Create clientDataHash as the SHA256 hash of the one-time challenge your server sends
// > to your app before performing the attestation,
Expand Down
1 change: 0 additions & 1 deletion appattest/verify_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func validateKeyUsage(cert *x509.Certificate, isCA bool) error {
return fmt.Errorf("CA certificate missing Certificate Sign key usage")
}
} else {
fmt.Println(cert.KeyUsage)
if cert.KeyUsage&x509.KeyUsageDigitalSignature == 0 {
return fmt.Errorf("end entity certificate missing required key usage (Digital Signature)")
}
Expand Down