Sunday, February 16, 2014

Self-Signed Certificates on IIS 7 – the Easy Way and the Most Effective Way

When I configure a test environment, that are using https, I need a certificate. To create a self-signed certificates, you must do a few things to get it to work on a host header. This problem and solution, Rob Bagby written about here


  1. This comment has been removed by the author.

  2. You really should not use Self-Signed Certificates. Instead use a Local Certificate Authority (CA), they are domain trusted and will work outside your single box :-) Adding the certificate can be done easiest with PowerShell using New-WebBinding: New-WebBinding -Name "SharePoint Central Administration v4" -HostHeader ""-Protocol "https" -Port 443 -SslFlags 0 | Out-Null

    Get-Item Cert:\LocalMachine\My\$ThumbPrint | New-Item!443 | Out-Null

    Where $ThumbPrint is fetched using the PSDrive for certs:
    Get-ChildItem Cert:\LocalMachine\My

  3. Note sure why profile was called TGITM :-)
    Anders Rask