次の方法で共有


X509Certificate2.ExportCertificatePem メソッド

定義

PEM としてエンコードされたパブリック X.509 証明書をエクスポートします。

public:
 System::String ^ ExportCertificatePem();
public string ExportCertificatePem ();
member this.ExportCertificatePem : unit -> string
Public Function ExportCertificatePem () As String

戻り値

String

証明書の PEM エンコード。

例外

証明書が破損しているか、無効な状態であるか、PEM にエクスポートできませんでした。

注釈

A PEM-encoded X.509 certificate will begin with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----, with the base64 encoded DER contents of the certificate between the PEM boundaries. 証明書は、IETF RFC 7468 の "厳密な" エンコード規則に従ってエンコードされます。

適用対象