public static CertResponse GetInstance(object obj)
{
if (obj is CertResponse)
return (CertResponse)obj;
if (obj is Asn1Sequence)
return new CertResponse((Asn1Sequence)obj);
throw new ArgumentException("Invalid object: " + obj.GetType().Name, "obj");
}