Skip to content

Commit 67de9da

Browse files
committed
Update SetupWinRMCertificateAuth.ps1
1 parent 292b780 commit 67de9da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: SetupWinRMCertificateAuth.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ $ErrorActionPreference = "Stop"
33
$username = "Administrator"
44
$password = "Passw0rd"
55

6-
$client_cert_path = z:\Downloads\ca_test\certs\cert.pem"
7-
$client_ca_cert_path = "z:\Downloads\ca_test\certs\ca.pem"
6+
# The X509 certs can be combined in a #PKCS12 file
7+
$client_cert_path = "$(pwd)\cert.pem"
8+
$client_ca_cert_path = "$(pwd)\ca.pem"
89

910
# Enable certificate authentication
1011
& winrm set winrm/config/service/auth `@`{Certificate=`"true`"`}

0 commit comments

Comments
 (0)