Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace hardcoded certificate store location with variable #797

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading