All pages
Powered by GitBook
1 of 1

Loading...

Set-RASCertificate.md

NAME

Set-RASCertificate

SYNOPSIS

Modifies the details of a Certificate.

SYNTAX

Set-RASCertificate [] (uint) [ (string)] [ (bool)] [ (string)] [ (string)] [ (string)] [ (SecureString)] [ (string)] [- {None | Gateway | HALB}] [()]

**Set-RASCertificate [-] () [ (string)] [ (bool)] [ (string)] [ (string)] [ (string)] [ (SecureString)] [ (string)] [- {None | Gateway | HALB}] [()]

Set-RASCertificate [] (string) [[-] (uint)] [ (string)] [ (bool)] [ (string)] [ (string)] [ (string)] [ (SecureString)] [ (string)] [- {None | Gateway | HALB}] [()]

DESCRIPTION

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

PARAMETERS

Name (string)

The name of the target Certificate.

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

SiteId (uint)

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 (uint)

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.

NewName (string)

The new name of the target Certificate.

Description (string)

A user-defined Certificate description.

Usage ()

Change the Usage for the Certificate.

Possible values: None, Gateway, HALB

Enabled (bool)

Enable or disable the specified Certificate in a site.

PublicKeyFile (string)

Public Key file name.

PfxFile (string)

Certificate file name in pfx format.

PfxPassword (SecureString)

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

IntermediateFile (string)

Intermediate file name.

(CommonParameters)

INPUTS

OUTPUTS

-none-

EXAMPLES

**---------- EXAMPLE 1 ----------

Set-RASCertificate -Name "Cert0" -NewName "Cert1"

Changes the name of Cert0, within the Licensing Site, to Cert1. **---------- EXAMPLE 2 ----------

Set-RASCertificate -Name "ImportedCert" -SiteId 2 -IntermediateFile "C:\intermediate.crt"

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

Set-RASCertificate -Name "RequestedCert" -SiteId 3 -PublicKeyFile "C:\publicKey.crt"

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

RELATED LINKS

Invoke-RASCertificateCmd
Id
Description
Enabled
IntermediateFile
NewName
PfxFile
PfxPassword
PublicKeyFile
Usage
CommonParameters
InputObject
Certificate
Description
Enabled
IntermediateFile
NewName
PfxFile
PfxPassword
PublicKeyFile
Usage
CommonParameters
Name
SiteId
Description
Enabled
IntermediateFile
NewName
PfxFile
PfxPassword
PublicKeyFile
Usage
CommonParameters
Certificate
Certificate
Certificate
Get-RASCertificate
New-RASCertificate
Remove-RASCertificate
Invoke-RASExportCertificate
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation.