Compartir a través de


SslStreamCertificateContext.Create Método

Definición

Sobrecargas

Create(X509Certificate2, X509Certificate2Collection, Boolean)

Intenta compilar la cadena de certificados a partir de los certificados proporcionados.

Create(X509Certificate2, X509Certificate2Collection, Boolean, SslCertificateTrust)

Intenta compilar la cadena de certificados a partir de los certificados proporcionados.

Create(X509Certificate2, X509Certificate2Collection, Boolean)

Source:
SslStreamCertificateContext.cs
Source:
SslStreamCertificateContext.cs
Source:
SslStreamCertificateContext.cs

Intenta compilar la cadena de certificados a partir de los certificados proporcionados.

public:
 static System::Net::Security::SslStreamCertificateContext ^ Create(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ target, System::Security::Cryptography::X509Certificates::X509Certificate2Collection ^ additionalCertificates, bool offline);
public static System.Net.Security.SslStreamCertificateContext Create (System.Security.Cryptography.X509Certificates.X509Certificate2 target, System.Security.Cryptography.X509Certificates.X509Certificate2Collection? additionalCertificates, bool offline = false);
public static System.Net.Security.SslStreamCertificateContext Create (System.Security.Cryptography.X509Certificates.X509Certificate2 target, System.Security.Cryptography.X509Certificates.X509Certificate2Collection? additionalCertificates, bool offline);
static member Create : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509Certificate2Collection * bool -> System.Net.Security.SslStreamCertificateContext
Public Shared Function Create (target As X509Certificate2, additionalCertificates As X509Certificate2Collection, Optional offline As Boolean = false) As SslStreamCertificateContext
Public Shared Function Create (target As X509Certificate2, additionalCertificates As X509Certificate2Collection, offline As Boolean) As SslStreamCertificateContext

Parámetros

target
X509Certificate2

El certificado de servidor.

additionalCertificates
X509Certificate2Collection

Los certificados complementarios usados para crear la cadena de certificados.

offline
Boolean

false para indicar que los certificados que faltan se pueden descargar de la red; true para indicar que solo se deben buscar certificados que faltan en los almacenes X509Certificate disponibles.

Devoluciones

El contexto de certificado con la cadena de certificados recién creada.

Excepciones

target no tiene una clave privada asociada.

Comentarios

Los certificados proporcionados no deben eliminarse durante la vigencia de SslStreamCertificateContext.

Importante

El certificado de destino debe incluir una clave privada.

Se aplica a

Create(X509Certificate2, X509Certificate2Collection, Boolean, SslCertificateTrust)

Source:
SslStreamCertificateContext.cs
Source:
SslStreamCertificateContext.cs
Source:
SslStreamCertificateContext.cs

Intenta compilar la cadena de certificados a partir de los certificados proporcionados.

public static System.Net.Security.SslStreamCertificateContext Create (System.Security.Cryptography.X509Certificates.X509Certificate2 target, System.Security.Cryptography.X509Certificates.X509Certificate2Collection? additionalCertificates, bool offline = false, System.Net.Security.SslCertificateTrust? trust = default);
static member Create : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509Certificate2Collection * bool * System.Net.Security.SslCertificateTrust -> System.Net.Security.SslStreamCertificateContext
Public Shared Function Create (target As X509Certificate2, additionalCertificates As X509Certificate2Collection, Optional offline As Boolean = false, Optional trust As SslCertificateTrust = Nothing) As SslStreamCertificateContext

Parámetros

target
X509Certificate2

El certificado de servidor.

additionalCertificates
X509Certificate2Collection

Los certificados complementarios usados para crear la cadena de certificados.

offline
Boolean

false para indicar que los certificados que faltan se pueden descargar de la red; true para indicar que solo se deben buscar certificados que faltan en los almacenes X509Certificate disponibles.

trust
SslCertificateTrust

Una directiva de confianza opcional, para reemplazar la confianza predeterminada del sistema.

Devoluciones

El contexto de certificado con la cadena de certificados recién creada.

Excepciones

target no tiene una clave privada asociada.

Comentarios

Los certificados proporcionados no deben eliminarse durante la vigencia de SslStreamCertificateContext.

Importante

El certificado de destino debe incluir una clave privada.

Se aplica a