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

Set-RDMEntryPrivateKeyCertificateData

Synopsis

Set the embedded SSH certificate data on an entry

Syntax

__AllParameterSets

Set-RDMEntryPrivateKeyCertificateData -InputObject <PSConnection> [-CertificateData] <string>
 [-PassThru] [-Set] [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf]
 [-Confirm] [<CommonParameters>]

Description

Set the embedded SSH certificate data for an entry that supports private key certificates. This cmdlet automatically sets the certificate type to 'Data' (embedded) and stores the certificate content securely.

For file-based certificates, you don't need this cmdlet - simply set the PrivateKeyCertificateType to 'File' and PrivateKeyCertificateFileName properties directly on the PSConnection object, then call Set-RDMEntry.

Certificate data should be the complete SSH certificate in OpenSSH format (e.g., ssh-ed25519-cert-v01@openssh.com or ssh-rsa-cert-v01@openssh.com).

Required permissions: Edit permission.

Examples

Example 1

Set certificate data and save immediately

Example 2

Chain with other cmdlets using PassThru

Example 3

Modify locally without saving

Parameters

-CertificateData

Certificate content as text (OpenSSH certificate format)

-Confirm

Prompts for confirmation before running the cmdlet.

-ForcePromptAnswer

Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:

  • Yes: Accept the prompt. Cover the OK and Automatic value.

  • No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

-InputObject

Entry to set certificate data on

-PassThru

Return the modified entry for further pipeline processing

-Set

Save the modified entry immediately

-VaultMode

Vault where the command will be applied. Three choices are offered: - Default: Current vault that has been set. - User: Vault specific to the current user. - Global: Global vault of the workspace.

-WhatIf

Shows what would happen if the cmdlet were to run. The cmdlet does not run.

CommonParameters

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

Inputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

Entry to modify, obtained from Get-RDMEntry

Outputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

PSConnection object returned when PassThru is used

Notes

For more information, type "Get-Help Set-RDMEntryPrivateKeyCertificateData -detailed". For technical information, type "Get-Help Set-RDMEntryPrivateKeyCertificateData -full".

Last updated

Was this helpful?