Functions/SSL/Save-PublicKey.ps1
function Save-PublicKey { [CmdletBinding()] Param ( [Parameter()] [string] $LocalPath ) if (Test-Path $LocalPath) { $Cert = Import-Certificate -FilePath $LocalPath -CertStoreLocation Cert:\LocalMachine\Root } else { Write-Host "Failed to find Certificate file at $LocalPath!" -ForegroundColor Red } } |