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 http://www.robbagby.com/iis/self-signed-certificates-on-iis-7-the-easy-way-and-the-most-effective-way/

4 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  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 "spca.contoso.com"-Protocol "https" -Port 443 -SslFlags 0 | Out-Null

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

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

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

    ReplyDelete