Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:adm:configuration_-_winrm [2024/01/30 06:45] erbenr |
tutorial:adm:configuration_-_winrm [2024/02/05 05:29] erbenr |
||
---|---|---|---|
Line 309: | Line 309: | ||
The tested way to generate self signed certificate on linux via tutorial which can be found [[https:// | The tested way to generate self signed certificate on linux via tutorial which can be found [[https:// | ||
- | Create and export self signed certificate with powershell: | ||
Now we have certificate which is imported in our windows server and now we can configure the HTTP listener | Now we have certificate which is imported in our windows server and now we can configure the HTTP listener | ||
+ | |||
+ | Create and export self signed certificate with powershell: | ||
<code powershell> | <code powershell> | ||
$pathToCertificate=" | $pathToCertificate=" | ||
- | $hostname=' | + | $hostname=' |
$params = @{ | $params = @{ | ||
Subject = " | Subject = " | ||
- | DnsName = 'bear.zoo.bcv' | + | DnsName = 'ad.idstory.idm' |
CertStoreLocation = ' | CertStoreLocation = ' | ||
KeyExportPolicy =' | KeyExportPolicy =' | ||
Line 326: | Line 327: | ||
} | } | ||
- | #$cert = New-SelfSignedCertificate -Subject " | ||
$cert = New-SelfSignedCertificate @params | $cert = New-SelfSignedCertificate @params | ||
Export-Certificate -Cert $cert -FilePath " | Export-Certificate -Cert $cert -FilePath " | ||
Line 345: | Line 345: | ||
</ | </ | ||
- | Restart | + | Create firewall rule for WinRM HTTPS: |
+ | <code powershell> | ||
+ | New-NetFirewallRule -Displayname 'WinRM - Powershell remoting HTTPS-In' | ||
+ | </ | ||
+ | Restart WinRM | ||
<code powershell> | <code powershell> | ||
Restart-Service winrm | Restart-Service winrm | ||
- | |||
</ | </ | ||
Line 355: | Line 358: | ||
+ | ===== Powershell 7 support ===== | ||
+ | |||
+ | Install powershell 7: https:// | ||
+ | |||
+ | Run app '' | ||
+ | <code powershell> | ||
+ | Enable-PSRemoting | ||
+ | </ | ||