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

$ErrorActionPreference = "Stop"

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