Need help in configuring https site on port 443 in IIS and use Self-Signed certificate using Azure desired state configuration

Swathi Reddy 186 Reputation points
2020-12-30T20:08:02.733+00:00

Need help in configuring https site on port 443 in IIS and use Self-Signed certificate using desired state configuration

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,346 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,211 Reputation points Microsoft Vendor
    2020-12-31T06:58:21.363+00:00

    Hi anonymous user,

    configuring https site on port 443

    Before binding port 443, you need to create a self-signed certificate, In IIS Manager, bind the certificate to SSL port 443 as follows:

    1. Select your site in the Actions pane, and click Bindings... .
    2. Click Add... and select https from the type drop-down list, set the port to 443, If port 443 is listed, select this port from the list and click Edit.
    3. Select your certificate name in the SSL certificate drop-down list, and click OK.

    52340-30.png

    use Self-Signed certificate using desired state configuration.

    You can use PowerShell to create Self Signed Certificates, more information you can refer to this link: creating-a-desired-state-configuration-resource-for-self-signed-certificates.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Swathi Reddy 186 Reputation points
    2021-01-01T15:32:27.747+00:00

    Hello Sam,

    Thank you. Can you please provide how to write it in Desired state configuration.

    Self signed certificate I have created on the azure VM like :

    $Params = @{
    "DnsName" = @("mywebsite.com","www.test.com")
    "CertStoreLocation" = "Cert:\LocalMachine\My"
    "NotAfter" = (Get-Date).AddMonths(6)
    "KeyAlgorithm" = "RSA"
    "KeyLength" = "2048"
    }
    New-SelfSignedCertificate @Params

    Can you let me know the process and script for configuring https site on port 443 in IIS and use Self-Signed certificate

    0 comments No comments