From 0ca19a5b73b24dffd160524dd046fbc0a746a9f5 Mon Sep 17 00:00:00 2001 From: ChunPanYung <31672021+ChunPanYung@users.noreply.github.com> Date: Thu, 3 Feb 2022 15:30:21 -0500 Subject: [PATCH] Update windows_winrm.rst (#76835) Co-authored-by: Jordan Borean --- docs/docsite/rst/user_guide/windows_winrm.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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