Root OID Help

Peter Volz 1,295 Reputation points
2023-06-26T02:49:44.61+00:00

Hello,

Dim EKU As X509EnhancedKeyUsageExtension = TryCast(MyCertificate.Extensions("2.5.29.37"), X509EnhancedKeyUsageExtension)

vs

Dim EKU As X509EnhancedKeyUsageExtension = TryCast(MyCertificate.Extensions("2.5.29.37.0"), X509EnhancedKeyUsageExtension)

Anyone knows the difference between OID Extensions 2.5.29.37 vs 2.5.29.37.0 ?

The only difference is trailing Dot Zero

Thanks for help :)

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,181 questions
Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Developer technologies | VB
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2023-06-26T09:14:20.35+00:00

    Hi @Peter Volz ,

    According to Reference record for OID 2.5.29.37

    • OID 2.5.29.37 is the identifier for Extended Key Usage (extKeyUsage), which indicates the purposes for which the public key of the certificate can be used, in addition to or in place of the purposes indicated by the Key Usage (keyUsage) extension field.
    • OID 2.5.29.37.0 is the identifier for Any Extended Key Usage (anyExtendedKeyUsage), which indicates that the public key of the certificate can be used for any purpose.
    • Therefore, OID 2.5.29.37 is a general extension field, while OID 2.5.29.37.0 is a specific extended key usage value.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.