mirror of https://github.com/docker/docs.git
Merge pull request #278 from docker/bail-if-no-cert
More defensive coding around listing our keys in the yubikey.
This commit is contained in:
commit
f0ca498474
|
@ -483,6 +483,12 @@ func yubiListKeys(ctx IPKCS11Ctx, session pkcs11.SessionHandle) (keys map[string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we found nothing
|
||||||
|
if cert == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
var ecdsaPubKey *ecdsa.PublicKey
|
var ecdsaPubKey *ecdsa.PublicKey
|
||||||
switch cert.PublicKeyAlgorithm {
|
switch cert.PublicKeyAlgorithm {
|
||||||
case x509.ECDSA:
|
case x509.ECDSA:
|
||||||
|
|
Loading…
Reference in New Issue