Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RASCertificate

SYNOPSIS

Modifies the details of a Certificate.

SYNTAX

Set-RASCertificate [-Id] <uint> [-Description <string>] [-Enabled <bool>]
 [-IntermediateFile <string>] [-NewName <string>] [-PfxFile <string>] [-PfxPassword <SecureString>]
 [-PublicKeyFile <string>]
 [-Usage {None | Gateway | HALB | CBAPIServer | CBAPIDataEncryption | CostInsights}]
 [<CommonParameters>]
Set-RASCertificate [-InputObject] <Certificate> [-Description <string>] [-Enabled <bool>]
 [-IntermediateFile <string>] [-NewName <string>] [-PfxFile <string>] [-PfxPassword <SecureString>]
 [-PublicKeyFile <string>]
 [-Usage {None | Gateway | HALB | CBAPIServer | CBAPIDataEncryption | CostInsights}]
 [<CommonParameters>]
Set-RASCertificate [-Name] <string> [[-SiteId] <uint>] [-Description <string>] [-Enabled <bool>]
 [-IntermediateFile <string>] [-NewName <string>] [-PfxFile <string>] [-PfxPassword <SecureString>]
 [-PublicKeyFile <string>]
 [-Usage {None | Gateway | HALB | CBAPIServer | CBAPIDataEncryption | CostInsights}]
 [<CommonParameters>]

DESCRIPTION

Changes the basic details of a Certificate, sets the Public Key of a Requested Certificate or sets the Intermediate of an Imported Certificate.

EXAMPLES

Example 1

Changes the name of Cert0, within the Licensing Site, to Cert1.

Example 2

Modifies the Intermediate of the Imported Certificate (ImportedCert) within Site 2 to the contents of intermediate.crt

Example 3

Modifies the Public Key of the Requested Certificate (RequestedCert) within Site 3 to the public key within publicKey.crt

PARAMETERS

-Name

The name of the target Certificate.

This must be the actual Certificate name used in the RAS farm.

-SiteId

Site ID in which to modify the specified Certificate.

If the parameter is omitted, the site ID of the Licensing Server will be used.

-Id

The ID of the Certificate to modify. To obtain the ID, use the Get-Certificate cmdlet.

-InputObject

The Certificate to modify.

To obtain an object of type Certificate representing a Certificate, use the Get-Certificate cmdlet.

Type reference: Certificate

-NewName

The new name of the target Certificate.

-Description

A user-defined Certificate description.

-Usage

Change the Usage for the Certificate.

Possible values: None, Gateway, HALB, CBAPIServer, CBAPIDataEncryption, CostInsights

Type reference: Certificate

-Enabled

Enable or disable the specified Certificate in a site.

-PublicKeyFile

Public Key file name.

-PfxFile

Certificate file name in pfx format.

-PfxPassword

The password of the pfx file specified in the PfxFile parameter.

-IntermediateFile

Intermediate file name.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Certificate

OUTPUTS

None

Last updated