diff --git a/docs/docsite/rst/user_guide/windows_winrm.rst b/docs/docsite/rst/user_guide/windows_winrm.rst index b3c3461f44a..a37d2b67f1d 100644 --- a/docs/docsite/rst/user_guide/windows_winrm.rst +++ b/docs/docsite/rst/user_guide/windows_winrm.rst @@ -187,8 +187,7 @@ Following example shows how to import the issuing certificate: .. code-block:: powershell - $cert = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Certificate2 - $cert.Import("cert.pem") + $cert = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Certificate2 "cert.pem" $store_name = [System.Security.Cryptography.X509Certificates.StoreName]::Root $store_location = [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine @@ -205,8 +204,7 @@ The code to import the client certificate public key is: .. code-block:: powershell - $cert = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Certificate2 - $cert.Import("cert.pem") + $cert = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Certificate2 "cert.pem" $store_name = [System.Security.Cryptography.X509Certificates.StoreName]::TrustedPeople $store_location = [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine