PyCERT_CONTEXT.CertGetIntendedKeyUsage

int = CertGetIntendedKeyUsage()

Returns the intended key usage from the certificate extensions (szOID_KEY_USAGE or szOID_KEY_ATTRIBUTES)

Return Value

Returns a combination of CERT_*_KEY_USAGE values