Set-​Azure​Rm​Api​Management​Certificate

Modifies an API Management certificate.

Syntax

Set-AzureRmApiManagementCertificate
   -CertificateId <String>
   -Context <PsApiManagementContext>
   [-PassThru]
   -PfxBytes <Byte[]>
   -PfxPassword <String>
   [<CommonParameters>]
Set-AzureRmApiManagementCertificate
   -CertificateId <String>
   -Context <PsApiManagementContext>
   [-PassThru]
   -PfxFilePath <String>
   -PfxPassword <String>
   [<CommonParameters>]

Description

The Set-AzureRmApiManagementCertificate cmdlet modifies an Azure API Management certificate.

Examples

Example 1: Modify a certificate

PS C:\>Set-AzureRmApiManagementCertificate -Context $ApiMgmtContext -CertificateId "0123456789" -PfxFilePath "C:\contoso\certificates\apimanagementnew.pfx" -PfxPassword "2222"

This command modifies the specified API Management certificate.

Required Parameters

-CertificateId

Specifies the ID of the certificate to modify.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Context

Specifies a PsApiManagementContext object.

Type:PsApiManagementContext
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PfxBytes

Specifies an array of bytes of the certificate file in .pfx format. This parameter is required if you do not specify the PfxFilePath parameter.

Type:Byte[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PfxFilePath

Specifies the path to the certificate file in .pfx format to create and upload. This parameter is required if you do not specify the PfxBytes parameter.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PfxPassword

Specifies the password for the certificate.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-PassThru

passthru

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementCertificate