Invoke-RASExportCertificate

NAME

Invoke-RASExportCertificate

SYNOPSIS

Exports a certificate to a file.

SYNTAX

Invoke-RASExportCertificate [[-Id] (uint)] [FilePath (string)] [(CommonParameters)]

Invoke-RASExportCertificate [-InputObject] (Certificate) [FilePath (string)] [(CommonParameters)]

Invoke-RASExportCertificate [[-Name] (string)] [[-SiteId] (uint)] [FilePath (string)] [(CommonParameters)]

DESCRIPTION

Exports a certificate to a file.

PARAMETERS

Name (string)

The name of the Certificate to export.

SiteId (uint)

Site ID of the Certificate to export.

Id (uint)

The ID of the Certificate to export.

InputObject (Certificate)

The Certificate object to export.

To obtain a Certificate object representing a Certificate, use the Get-RASCertificate command."

FilePath (string)

Target file name and path. Use the '.crt' filename extension to be consistent with Parallels RAS console.

(CommonParameters)

INPUTS

Certificate

OUTPUTS

RASFiles

EXAMPLES

---------- EXAMPLE 1 ----------

Invoke-RASExportCertificate -Name MyCertificate -FilePath "C:\myCertificate.crt"

Exports the certifcate named MyCertificate to the specified file. ---------- EXAMPLE 2 ----------

Invoke-RASExportCertificate -Id 1 -FilePath "C:\myCertificate.crt"

Exports the certifcate with Id 1 to the specified file.

Last updated