diff --git a/src/Certificate/Import-CSCertificate.ps1 b/src/Certificate/Import-CSCertificate.ps1 index 0274a88..ce3c18a 100644 --- a/src/Certificate/Import-CSCertificate.ps1 +++ b/src/Certificate/Import-CSCertificate.ps1 @@ -100,7 +100,7 @@ function Import-CSCertificate { $_.Exception.Message | Write-Error $ErrorParams = @{ ErrorAction = 'Stop' - Exception = [System.Security.Cryptography.Exception]::new( + Exception = [System.Exception]::new( 'Could not read or add the pfx certificate!' ) }