AsymmetricAlgorithm.ExportPkcs8PrivateKeyPem 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以 PKCS#8 PrivateKeyInfo 格式匯出目前的密鑰,並編碼 PEM。
public:
System::String ^ ExportPkcs8PrivateKeyPem();
public string ExportPkcs8PrivateKeyPem ();
member this.ExportPkcs8PrivateKeyPem : unit -> string
Public Function ExportPkcs8PrivateKeyPem () As String
傳回
包含 PEM 編碼 PKCS#8 PrivateKeyInfo 的字串。
例外狀況
無法匯出金鑰。
備註
PEM 編碼的 PKCS#8 PrivateKeyInfo 會以 開頭 -----BEGIN PRIVATE KEY-----
,結尾 -----END PRIVATE KEY-----
為 ,且 PEM 界限之間密鑰的 base64 編碼 DER 內容。
The PEM is encoded according to the IETF RFC 7468 "strict" encoding rules.
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應