1.6 KiB
SSL Umstellung
Mittwoch, 20. Juni 2018
13:19
Import-Module IISAdministration
$iisSite = "MySite"
$hostname = "mysites-spt.bkk-mobiloil.de"
New-WebBinding -name $iisSite -Protocol https -HostHeader $hostname -Port 443 -SslFlags 1
request Zertifikat :
mmc mit Zertifikaten öffnen.
Im Computer private Store auf request Zertifikat:
AD Enrollment Policy
WebServer windows 2012
Details -Probertys
Common Name eintragen
Alternate Names mit DNS eintragen. Dort auch noch mal Common Name eintragen.
Passwort für den Export :
Sharepoint2016!
$cert = (Get-ChildItem cert:\LocalMachine\My | where-object { $_.Subject -like "*bkksptweb*" } | Select-Object -First 1).Thumbprint
New-WebBinding -Name "Portal Home" -IPAddress "*" -HostHeader "portal-spt.bkk-mobiloil.de" -Port 443 -Protocol https -SslFlags 1
get-item -Path "cert:\localmachine\my\$cert"
get-item -Path "cert:\localmachine\my\$cert"| new-item -path IIS:\SslBindings\0.0.0.0:443:portal-spt.bkk-mobiloil.de -Value $cert -Force