Invoke-RASExportCertificate
SYNOPSIS
Exports a certificate to a file.
SYNTAX
Invoke-RASExportCertificate [[-Id] <uint>] -ExportCertificate <SwitchParameter> -FilePath <string>
[<CommonParameters>]Invoke-RASExportCertificate [[-Id] <uint>] -ExportPfx <SwitchParameter> -FilePath <string>
-PfxPassword <SecureString> [<CommonParameters>]Invoke-RASExportCertificate [-InputObject] <Certificate> -ExportCertificate <SwitchParameter>
-FilePath <string> [<CommonParameters>]Invoke-RASExportCertificate [-InputObject] <Certificate> -ExportPfx <SwitchParameter>
-FilePath <string> -PfxPassword <SecureString> [<CommonParameters>]Invoke-RASExportCertificate [[-Name] <string>] [[-SiteId] <uint>]
-ExportCertificate <SwitchParameter> -FilePath <string> [<CommonParameters>]Invoke-RASExportCertificate [[-Name] <string>] [[-SiteId] <uint>] -ExportPfx <SwitchParameter>
-FilePath <string> -PfxPassword <SecureString> [<CommonParameters>]DESCRIPTION
Exports a certificate to a file.
EXAMPLES
Example 1
Exports the certificate named MyCertificate to the specified file path.
Example 2
Exports the certificate with Id 1 to the specified file path.
Example 3
Exports the certificate named MyPfxCertificate as a PFX file to the specified file path.
Example 4
Exports the certificate with Id 1 as a PFX file to the specified file path.
PARAMETERS
-Name
The name of the Certificate to export.
-SiteId
Site ID of the Certificate to export.
-Id
The ID of the Certificate to export.
-InputObject
The Certificate object to export.
To obtain a Certificate object representing a Certificate, use the Get-RASCertificate command."
Type reference: Certificate
-FilePath
The full path where the exported certificate is to be stored. The accepted filename extensions are '.crt' and '.pfx'.
-ExportCertificate
Specifies to export as certificate.
-ExportPfx
Specifies to export as Pfx.
-PfxPassword
Password to be used for the PFX file.
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
RASFiles
RELATED LINKS
Last updated