Scripts/Update-FpsCertificate.ps1
# Import Module Install-Module FpsBcDeployment -Force Import-Module FpsBcDeployment -Force # Parameters $CertFilePath = '' # E.g. 'C:\4PS Install\[certificate].pfx' $CertPassword = '' # E.g. 'MyPassword123' $CertToReplaceThumbprint = '' # E.g. '008CEE1FEA5RANDOM2AF4F603EBPRINTBB0341D1' $CertStorePath = 'cert:\LocalMachine\My' # Get current deployed 4PS certificates Get-FpsCertificate -CertStorePath $CertStorePath # Update the certificate in Microsoft Certificate Store and update the thumbprints on BC ServerInstances + IIS Web Site Bindings. $arguments = @{ 'CertFilePath' = $CertFilePath 'CertPassword' = $CertPassword | ConvertTo-SecureString -AsPlainText -Force 'CertToReplaceThumbprint' = $CertToReplaceThumbprint 'CertStorePath' = $CertStorePath 'RemovePreviousCert' = $false 'AutoRestartServices' = $true } Update-FpsCertificate @arguments |