First we are going to install the Windows Internet information server role.
Inthe windows server open server manager and select add roles and features
In the server role section select web server iis role
next features section dont select anything
Finall select install button and finish the iis role instalation
Now your iis role installed sucessfully.
Check your srvers public ip(local ip in lan)
now you can see IIS default welcome page.
now we are going to map your public ip to your registered domain name in godaddy.
In Domain regiterar (go daddy,hostingar,route 53) control panel just add the record and give the below details.
Type : A (record) Host : <ur domain name /subdomain name> Value : TTL(Time to Live) : give minimum 10 mins
now check your domain name in browser.
Now we are going to secure our website with SSL.
for that we are going to use free certificate provider let's encrypt.
first download the certbots installer for windows in the below link.
download and extract the package to c drive as win acme
now execute the winacme.exe
Select create new certificate N
before that you want to verify your iis site bindings are properly configure below.
Select your site name here.
Next choose All option
Its asking confirmation
after that it download the end user license agrrement in your local server.
its asking to open default application. press Y
After that its asks agree the terms
again press Y
After that its asks the mail for communication purpose.
enter your mail id.
After that its successfully deploy the ssl certificate ffor your website.
Now check you website is secured with SSL.
forget to tell one thing always create new site in iis . so you not face any difficulties. dont use default website.