title: How do I verify Certificate for KeyUsage
body: <p>I'm trying to validate certificate to make sure it has the right keyUsage.
  But don't see how I can specify my X509KeyUsageFlags.KeyEncypherment usage flag into this application policy.</p>
  
  <p>This is the code I have so far.  Any one else got this to work?</p>
  
  <pre><code>X509Certificate2 tmpCert = new X509Certificate2(Cert);
  
  X509Chain ch = new X509Chain();
  ch.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;
  ch.ChainPolicy.VerificationFlags = X509VerificationFlags.AllowUnknownCertificateAuthority;
  
  var kUsage = new System.Security.Cryptography.Oid("2.5.29.15");                    
  ch.ChainPolicy.ApplicationPolicy.Add(kUsage);
  
  bool success = ch.Build(tmpCert);
  </code></pre>