use cert instance constructor for linux
This commit is contained in:
parent
4ea71a2bba
commit
4386f0dfd6
@ -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,
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user