X509AuthorityKeyIdentifierExtension.CreateFromIssuerNameAndSerialNumber 方法

定义

重载

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, Byte[])

创建一个 X509AuthorityKeyIdentifierExtension 指定提供的颁发者名称和序列号的 。

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, ReadOnlySpan<Byte>)

创建一个 X509AuthorityKeyIdentifierExtension 指定提供的颁发者名称和序列号的 。

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, Byte[])

Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs

创建一个 X509AuthorityKeyIdentifierExtension 指定提供的颁发者名称和序列号的 。

public:
 static System::Security::Cryptography::X509Certificates::X509AuthorityKeyIdentifierExtension ^ CreateFromIssuerNameAndSerialNumber(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ issuerName, cli::array <System::Byte> ^ serialNumber);
public static System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension CreateFromIssuerNameAndSerialNumber (System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, byte[] serialNumber);
static member CreateFromIssuerNameAndSerialNumber : System.Security.Cryptography.X509Certificates.X500DistinguishedName * byte[] -> System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension
Public Shared Function CreateFromIssuerNameAndSerialNumber (issuerName As X500DistinguishedName, serialNumber As Byte()) As X509AuthorityKeyIdentifierExtension

参数

issuerName
X500DistinguishedName

证书颁发机构 (CA) 将对此扩展进行签名的证书的颁发者名称值。

serialNumber
Byte[]

证书颁发机构 (CA) 将对此扩展进行签名的证书的序列号值。

返回

配置的扩展。

例外

issuerNameserialNumbernull

serialNumber 无效,因为前导 9 位要么全部为零位,要么全部为 1 位。

适用于

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, ReadOnlySpan<Byte>)

Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs

创建一个 X509AuthorityKeyIdentifierExtension 指定提供的颁发者名称和序列号的 。

public:
 static System::Security::Cryptography::X509Certificates::X509AuthorityKeyIdentifierExtension ^ CreateFromIssuerNameAndSerialNumber(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ issuerName, ReadOnlySpan<System::Byte> serialNumber);
public static System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension CreateFromIssuerNameAndSerialNumber (System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, ReadOnlySpan<byte> serialNumber);
static member CreateFromIssuerNameAndSerialNumber : System.Security.Cryptography.X509Certificates.X500DistinguishedName * ReadOnlySpan<byte> -> System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension
Public Shared Function CreateFromIssuerNameAndSerialNumber (issuerName As X500DistinguishedName, serialNumber As ReadOnlySpan(Of Byte)) As X509AuthorityKeyIdentifierExtension

参数

issuerName
X500DistinguishedName

证书颁发机构 (CA) 将对此扩展进行签名的证书的颁发者名称值。

serialNumber
ReadOnlySpan<Byte>

证书颁发机构 (CA) 将对此扩展进行签名的证书的序列号值。

返回

配置的扩展。

例外

issuerNamenull

serialNumber 无效,因为前导 9 位要么全部为零位,要么全部为 1 位。

适用于