Skip to content

Commit

Permalink
replace hardcoded certificate store location with variable
Browse files Browse the repository at this point in the history
  • Loading branch information
FH-Inway committed Dec 31, 2023
1 parent e8c0cca commit c9f3120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d365fo.tools/functions/new-d365entraintegration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function New-D365EntraIntegration {
Stop-PSFFunction -Message "Stopping because the certificate thumbprint could not be retrieved"
return
}
$certificateObject = Get-ChildItem Cert:\LocalMachine\My | Where-Object Thumbprint -eq $certificateThumbprint
$certificateObject = Get-ChildItem $certificateStoreLocation | Where-Object Thumbprint -eq $certificateThumbprint
if (-not $certificateObject) {
Write-PSFMessage -Level Host -Message "Unable to get the certificate object."
Stop-PSFFunction -Message "Stopping because the certificate object could not be retrieved"
Expand Down

0 comments on commit c9f3120

Please sign in to comment.