Functions/CertificateManagement/Get-FpsPfxCertificate.ps1
function Get-FpsPfxCertificate { param( [string] $CertPath = 'cert:\LocalMachine\My', [string] $SubjectFilter = '*4ps*' ) $certificates = Get-ChildItem -path $CertPath | Where-Object subject -like $SubjectFilter $certificates = $certificates | Where-Object -Property HasPrivateKey -eq $true $certificates | Select-Object FriendlyName, Subject, Thumbprint, NotBefore, NotAfter, Issuer, HasPrivateKey } Export-ModuleMember -Function Get-FpsPfxCertificate |