X509Certificate.ExportPkcs12 메서드

정의

PKCS#12/PFX 형식으로 인증서 및 프라이빗 키를 내보냅니다.

오버로드

Name Description
ExportPkcs12(PbeParameters, String)

PKCS#12/PFX 형식으로 인증서 및 프라이빗 키를 내보냅니다.

ExportPkcs12(Pkcs12ExportPbeParameters, String)

PKCS#12/PFX 형식으로 인증서 및 프라이빗 키를 내보냅니다.

ExportPkcs12(PbeParameters, String)

Source:
X509Certificate.cs
Source:
X509Certificate.cs

PKCS#12/PFX 형식으로 인증서 및 프라이빗 키를 내보냅니다.

public:
 cli::array <System::Byte> ^ ExportPkcs12(System::Security::Cryptography::PbeParameters ^ exportParameters, System::String ^ password);
public byte[] ExportPkcs12(System.Security.Cryptography.PbeParameters exportParameters, string? password);
member this.ExportPkcs12 : System.Security.Cryptography.PbeParameters * string -> byte[]
Public Function ExportPkcs12 (exportParameters As PbeParameters, password As String) As Byte()

매개 변수

exportParameters
PbeParameters

내보내기에서 사용할 알고리즘 매개 변수입니다.

password
String

내보내기에서 사용할 암호입니다.

반품

Byte[]

인코딩된 PKCS#12를 포함하는 바이트 배열입니다.

예외

password 에는 유니코드 'NULL' 문자가 포함되어 있습니다.

exportParameters 입니다 null .

현재 인스턴스가 삭제됩니다.

-또는-

내보내기 작업이 실패했습니다.

-또는-

exportParameters 는 값에 HashAlgorithm 대해 지원되지 않는 값을 지정합니다 EncryptionAlgorithm .

-또는-

exportParameters 에 대한 잘못된 암호화 알고리즘이 포함되어 있습니다 EncryptionAlgorithm.

적용 대상

ExportPkcs12(Pkcs12ExportPbeParameters, String)

Source:
X509Certificate.cs
Source:
X509Certificate.cs

PKCS#12/PFX 형식으로 인증서 및 프라이빗 키를 내보냅니다.

public:
 cli::array <System::Byte> ^ ExportPkcs12(System::Security::Cryptography::X509Certificates::Pkcs12ExportPbeParameters exportParameters, System::String ^ password);
public byte[] ExportPkcs12(System.Security.Cryptography.X509Certificates.Pkcs12ExportPbeParameters exportParameters, string? password);
member this.ExportPkcs12 : System.Security.Cryptography.X509Certificates.Pkcs12ExportPbeParameters * string -> byte[]
Public Function ExportPkcs12 (exportParameters As Pkcs12ExportPbeParameters, password As String) As Byte()

매개 변수

exportParameters
Pkcs12ExportPbeParameters

내보내기에서 사용할 알고리즘 매개 변수입니다.

password
String

내보내기에서 사용할 암호입니다.

반품

Byte[]

인코딩된 PKCS#12를 포함하는 바이트 배열입니다.

예외

password 에는 유니코드 'NULL' 문자가 포함되어 있습니다.

exportParameters은 유효한 값이 아닙니다.

현재 인스턴스가 삭제됩니다.

-또는-

내보내기 작업이 실패했습니다.

적용 대상