Import-RDMX509Certificate
Synopsis
Imports an X509 certificate.
Syntax
__AllParameterSets
Import-RDMX509Certificate [-Path] <string> [[-Password] <string>] [[-PrivateKeyPath] <string>]
-InputObject <PSConnection> [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]Description
Imports an X509 certificate. Takes as required parameters the certificate entry to be overwritten and the path to the new certificate file. If the new certificate is of .pfx format, the command additionnally requires the certificate's password. If the new certificate is of .pem or .der format, the command additionnally requires the path to the certificate's private key file. User requires add or edit rights.
Examples
Example 1
PS C:\> Get-RDMEntry -IncludeDocumentsStoredInDatabase -IncludeLocalPlaylists -IncludeUserSpecificSettings -Name MyOtherCert |
Import-RDMX509Certificate C:\Users\myuser\Downloads\certtest.pfx 12345Import a .pfx certificate from the provided path, using its required password (12345), and updating the X509 certificate entry 'MyOtherCert' with its values.
Example 2
Import a .pem certificate from the provided path, using its required private key path, and updating the X509 certificate entry 'MyOtherCert' with its values.
Parameters
-Confirm
Prompts you 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
PSConnection object explicitly provided.
-Password
Password to access certificate.
-Path
Certificate filepath to check.
-PrivateKeyPath
Private key file path to access certificate. Leave blank if you do not wish to include a private key.
-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 runs. The cmdlet is 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.
Notes
For more information, type "Get-Help Import-RDMX509Certificate -detailed". For technical information, type "Get-Help Import-RDMX509Certificate -full".
Last updated
Was this helpful?