你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CertificateOperations.CreateCertificateFromPfx 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateCertificateFromPfx(Byte[], String) |
已过时.
警告:此操作已弃用,将在 2024 年 2 月之后删除。 请改用 Azure KeyVault 扩展 。 Certificate从内存中的 .pfx 格式数据创建新的 。 |
CreateCertificateFromPfx(String, String) |
已过时.
警告:此操作已弃用,将在 2024 年 2 月之后删除。 请改用 Azure KeyVault 扩展 。 从 .pfx 文件创建新的 Certificate 。 |
CreateCertificateFromPfx(Byte[], String)
- Source:
- CertificateOperations.cs
注意
This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
警告:此操作已弃用,将在 2024 年 2 月之后删除。 请改用 Azure KeyVault 扩展 。 Certificate从内存中的 .pfx 格式数据创建新的 。
[System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)]
public Microsoft.Azure.Batch.Certificate CreateCertificateFromPfx(byte[] data, string password = default);
[<System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)>]
member this.CreateCertificateFromPfx : byte[] * string -> Microsoft.Azure.Batch.Certificate
Public Function CreateCertificateFromPfx (data As Byte(), Optional password As String = Nothing) As Certificate
参数
- data
- Byte[]
.pfx 格式的证书数据。
- password
- String
用于访问证书私钥的密码。 如果 PFX 不受密码保护,则此值可以为 null。
返回
一 Certificate 个 ,表示尚未添加到 Batch 服务的新证书。
- 属性
适用于
CreateCertificateFromPfx(String, String)
- Source:
- CertificateOperations.cs
注意
This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.
警告:此操作已弃用,将在 2024 年 2 月之后删除。 请改用 Azure KeyVault 扩展 。 从 .pfx 文件创建新的 Certificate 。
[System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)]
public Microsoft.Azure.Batch.Certificate CreateCertificateFromPfx(string path, string password = default);
[<System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)>]
member this.CreateCertificateFromPfx : string * string -> Microsoft.Azure.Batch.Certificate
Public Function CreateCertificateFromPfx (path As String, Optional password As String = Nothing) As Certificate
参数
- path
- String
.pfx 文件的路径。
- password
- String
用于访问证书私钥的密码。 如果 PFX 不受密码保护,则此值可以为 null。
返回
一 Certificate 个 ,表示尚未添加到 Batch 服务的新证书。
- 属性