Finds a certificate having an enhanced key extension that matches one of the keyUsage members.
A Certificate that has at least one of the specified key usages -or- a null reference (Nothing in Visual Basic) if no valid certificate could be found.
Exception Type | Condition |
---|---|
ArgumentNullException | keyUsage is a null reference (Nothing in Visual Basic). |
ArgumentException | keyUsage is invalid. |
CertificateStore Class | Org.Mentalis.Security.Certificates Namespace | CertificateStore.FindCertificateByUsage Overload List