/*
* Microsoft Copyright, 2017
* Author: pengland
*/
namespace DICETest
{
using System.Security.Cryptography.X509Certificates;
///
/// Checks a chain using the system (rather than bouncy castle) chain validator. BC seems to have
/// problems with EKU - clientAuth
///
class ChainChecker
{
public static bool CheckChain(Org.BouncyCastle.X509.X509Certificate[] certs)
{
int numCerts = certs.Length;
var sysCerts = new System.Security.Cryptography.X509Certificates.X509Certificate2[numCerts];
for(int j=0;j