3-party certificate
Add-CPSThirdPartyCert
Synopsis
Add a third-party certificate.
Syntax
elements (Default)
Add-CPSThirdPartyCert -EnrollmentID <Int32> -ChangeID <Int32> -Certificate <String> [-TrustChain <String>]
-KeyAlgorithm <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
body
Add-CPSThirdPartyCert -EnrollmentID <Int32> -ChangeID <Int32> -Body <Object> [-EdgeRCFile <String>]
[-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Uploads a third-party certificate and trust chain to an existing change. You can find the change ID by running the Get-CPSEnrollment
operation.
Parameters
-AccountSwitchKey
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Account switch keys can be found using Get-AccountSwitchKey
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Body
Request body, either as a PSCustomObject
or string. This parameter supports pipelining.
Type Object
Parameter Sets body
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline input True (ByValue)
Accept wildcard charactersFalse
-Certificate
Base64-encoded certificate body.
Type String
Parameter Sets elements
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-ChangeID
The change for this enrollment on which to perform the desired operation.
Type Int32
Parameter Sets (All)
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-EdgeRCFile
EdgeRC file to authenticate your command. Defaults to ~/.edgerc
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-EnrollmentID
Enrollment on which to perform the desired operation.
Type Int32
Parameter Sets (All)
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-KeyAlgorithm
Encryption key algorithm. Can be RSA
or ECDSA
.
Type String
Parameter Sets elements
Aliases
Accepted values RSA, ECDSA
RequiredTrue
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-TrustChain
Base64-encoded certificate trust chain.
Type String
Parameter Sets elements
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
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
System.Object
Outputs
System.Object
Related links
Updated 7 months ago