We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd57a2 commit 0c0aeafCopy full SHA for 0c0aeaf
model/oauth/ios.go
@@ -218,9 +218,13 @@ func (obj *appleAttestationObject) setupAppleCertificates() (*x509.Certificate,
218
intermediates.AddCert(cert)
219
}
220
221
+ // App Attest credential certificates have a Key Usage for attestation that
222
+ // doesn't match Go's default expectations (TLS). We must explicitly allow
223
+ // any key usage to verify the chain.
224
opts := x509.VerifyOptions{
225
Roots: roots,
226
Intermediates: intermediates,
227
+ KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageAny},
228
229
credCert := certs[0]
230
return credCert, &opts, nil
0 commit comments