Open ZuljinSBK opened 2 years ago
Why to make it static again? My suggestion: $currentDate = get-date $expirationDate = $currentDate.AddYears(1) .\makecert -r -pe -n CN=$hostname -b $currentDate -e $expirationDate -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localmachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12
Current date is 1 Jan 2022 so the script is generating expired certificates and WinRM connection can't be established.