use cert instance constructor for linux
This commit is contained in:
parent
4ea71a2bba
commit
4386f0dfd6
@ -79,8 +79,7 @@ function Import-CSCertificate {
|
|||||||
}
|
}
|
||||||
process {
|
process {
|
||||||
try {
|
try {
|
||||||
$cert = [System.Security.Cryptography.X509Certificates.X509Certificate2]::new()
|
$cert = [System.Security.Cryptography.X509Certificates.X509Certificate2]::new(
|
||||||
$cert.Import(
|
|
||||||
$Path,
|
$Path,
|
||||||
$null,
|
$null,
|
||||||
(
|
(
|
||||||
|
Loading…
Reference in New Issue
Block a user