Pipelines/Steps/Install/OnPrem/Sitecore/SSL/Import-ClientCert.ps1

$ErrorActionPreference = "Stop"

$clientCert = $SAFConfiguration.ssl.clientCert
if ([string]::IsNullOrEmpty($clientCert)) {
    ImportCert -PfxName "SitecoreClientSSLCertificate_SAF.pfx" -Password $SAFDefaultPFXPassword
}
else {
    Write-Warning "It seems that you are using a custom SSL client certificate. Skipping import..." 
    Start-Sleep -s 5
}