Winrm renew tls cert

From UVOO Tech Wiki
Revision as of 21:31, 22 August 2023 by Busk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

https://stackoverflow.com/questions/61326087/how-to-renew-port-5986-winrm-certificate

https://github.com/Microsoft/vsts-rm-extensions/blob/master/TaskModules/powershell/WinRM/WinRM-Http-Https/ConfigureWinRM.ps1

ConfigureWinRM.ps1 servername https

Get-ChildItem Cert:\ -Recurse
$mypwd = ConvertTo-SecureString -String "foo" -Force –AsPlainText
Import-PfxCertificate –FilePath .\NA26-P-VenSQL01.extendhealth.com.pfx cert:\localMachine\my -Password $mypwd

https://learn.microsoft.com/en-us/troubleshoot/windows-client/system-management-components/configure-winrm-for-https