fix(templates): drop -SkipRevocationCheck from New-PSSessionOption
Parameter not available in PS 7 on Linux. -SkipCACheck -SkipCNCheck sufficient for self-signed lab certs; revocation check is irrelevant for self-signed certs regardless. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -286,7 +286,7 @@ else {
|
|||||||
$credential = New-Object System.Management.Automation.PSCredential($AdminUsername, $secPwd)
|
$credential = New-Object System.Management.Automation.PSCredential($AdminUsername, $secPwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
$sessionOptions = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
|
$sessionOptions = New-PSSessionOption -SkipCACheck -SkipCNCheck
|
||||||
|
|
||||||
# ── Configure HOST-side WinRM client (TrustedHosts for HTTPS Basic auth) ──────
|
# ── Configure HOST-side WinRM client (TrustedHosts for HTTPS Basic auth) ──────
|
||||||
# HTTPS/5986 does not require AllowUnencrypted on the host side. Only TrustedHosts
|
# HTTPS/5986 does not require AllowUnencrypted on the host side. Only TrustedHosts
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ else {
|
|||||||
$credential = New-Object System.Management.Automation.PSCredential($AdminUsername, $secPwd)
|
$credential = New-Object System.Management.Automation.PSCredential($AdminUsername, $secPwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
$sessionOptions = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
|
$sessionOptions = New-PSSessionOption -SkipCACheck -SkipCNCheck
|
||||||
|
|
||||||
# ── Configure HOST-side WinRM client (TrustedHosts for HTTPS Basic auth) ──────
|
# ── Configure HOST-side WinRM client (TrustedHosts for HTTPS Basic auth) ──────
|
||||||
# HTTPS/5986 does not require AllowUnencrypted on the host side. Only TrustedHosts
|
# HTTPS/5986 does not require AllowUnencrypted on the host side. Only TrustedHosts
|
||||||
|
|||||||
Reference in New Issue
Block a user