- Log in to Windows Server 2016. The IP is 172.16.15.60 and the name of the server is WIN2016IIS.
- Press Windows + R. You will get the Run window. Open PowerShell ISE with administrative rights, type RunAs /user:Administrator PowerShell_ISE.exe in the run command window, and press OK.
- Now it will ask you for the administrator password of server WIN2916IIS. Type the administrator password and press Enter. The PowerShell window will open. Now you have to type New-SelfSignedCertificate -DnsName v3mysite.com -CertStoreLocation cert:LocalMachineMy, as shown here:
- You can see in the PowerShell window that the certificate has been created. It is a self-signed certificate.
- Let's open IIS Manager. Click on the WIN2016IIS server, and you'll see the Server Certificates.
- Open the Server Certificates window from the Features pane, as shown here:
- Here you can see the self-signed certificate v3mysite.com listed.