use cert instance constructor for linux

This commit is contained in:
OCram85 2019-04-04 16:44:32 +02:00
parent 4ea71a2bba
commit 4386f0dfd6

View File

@ -79,8 +79,7 @@ function Import-CSCertificate {
}
process {
try {
$cert = [System.Security.Cryptography.X509Certificates.X509Certificate2]::new()
$cert.Import(
$cert = [System.Security.Cryptography.X509Certificates.X509Certificate2]::new(
$Path,
$null,
(