Skip to content

Commit

Permalink
Enable piping of downloaded RSAT certificates to the cmdlet for impor…
Browse files Browse the repository at this point in the history
…ting them
  • Loading branch information
FH-Inway committed Jan 23, 2024
1 parent 8b791d5 commit 437fc4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
FileName : RSATCertificate_ABC-UAT_20240101-012030.zip
Password : 9zbPiLMTk676mkq5FvqQ
.EXAMPLE
PS C:\> Get-D365LcsEnvironmentRsatCertificate -ProjectId "123456789" -EnvironmentId "13cc7700-c13b-4ea3-81cd-2d26fa72ec5e" | Import-D365RsatSelfServiceCertificates
This will download the active rsat certificate file for the environment from the LCS project.
The resulting files are then imported into the certificate store on the local machine.
.NOTES
Author: Mötz Jensen (@Splaxi)
#>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.EXAMPLE
PS C:\> Import-D365RsatSelfServiceCertificates -Path "C:\Temp\UAT" -Password "123456789"
This will import the .cer and .pxf files into the correct stored, bases on the files located in "C:\Temp\UAT".
This will import the .cer and .pxf files into the correct store, bases on the files located in "C:\Temp\UAT".
After import it will display the thumbprint for both certificates.
Sample output:
Expand All @@ -37,10 +37,14 @@ function Import-D365RsatSelfServiceCertificates {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseSingularNouns", "")]
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[Parameter(
Mandatory = $true,
ValueFromPipelineByPropertyName)]
$Path,

[Parameter(Mandatory = $true)]
[Parameter(
Mandatory = $true,
ValueFromPipelineByPropertyName)]
$Password
)

Expand Down

0 comments on commit 437fc4b

Please sign in to comment.