GetTbsCertList() public method

public GetTbsCertList ( ) : byte[]
return byte[]
        /// <summary>Return the issuer of the given CRL as an X509Principal.</summary>
        public static X509Name GetIssuerX509Principal(
            X509Crl crl)
        {
            try
            {
                TbsCertificateList tbsCertList = TbsCertificateList.GetInstance(
                    Asn1Object.FromByteArray(crl.GetTbsCertList()));

                return(tbsCertList.Issuer);
            }
            catch (Exception e)
            {
                throw new CrlException("Could not extract issuer", e);
            }
        }
Esempio n. 2
0
		/// <summary>Return the issuer of the given CRL as an X509Principal.</summary>
		public static X509Name GetIssuerX509Principal(
			X509Crl crl)
		{
			try
			{
				TbsCertificateList tbsCertList = TbsCertificateList.GetInstance(
					Asn1Object.FromByteArray(crl.GetTbsCertList()));

				return tbsCertList.Issuer;
			}
			catch (Exception e)
			{
				throw new CrlException("Could not extract issuer", e);
			}
		}