ps/Modules/Alkami.DevOps.Certificates/Public/Read-WebTierCertificates.ps1

23 lines
603 B
PowerShell
Raw Permalink Normal View History

2023-05-30 22:51:22 -07:00
function Read-WebTierCertificates {
<#
.SYNOPSIS
Reads Web Tier Certificates.
#>
[CmdletBinding()]
Param(
[string]$baseFolder,
[Hashtable[]]$certificatesTable,
[string[]]$usersWhoNeedRights
)
$logLead = (Get-LogLeadName);
[string[]]$usersWhoNeedRights = $null
$usersWhoNeedRights += "IIS_IUSRS"
Write-Verbose ("$logLead : Users who need rights read as {0}" -f ($usersWhoNeedRights -join ","))
Read-Certificates $baseFolder $certificatesTable $usersWhoNeedRights
}
Set-Alias -name Load-WebTierCertificates -value Read-WebTierCertificates;