Update windows_winrm.rst (#76835)

Co-authored-by: Jordan Borean <jborean93@gmail.com>
pull/76946/head
ChunPanYung 3 years ago committed by GitHub
parent 9a9ef01997
commit 0ca19a5b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save