Professional Documents
Culture Documents
How To Create A Self Signed Certificate
How To Create A Self Signed Certificate
Open a PowerShell window in Administrator mode, and enter the following command:
This will create a self-signed certificate specific for mysite.local that is valid for 10 years.
You can modify the number of years by changing the value in the AddYears function.
Once the certificate is created, you should copy it to the Trusted Root Certification
Authorities store. Using Cortana search in Windows 10, type "certificate" until you see the
"Manage computer certificates" option and open it. Follow these steps:
Open IIS, navigate to your site, and add an https binding to it. Make sure you enter the host
name, check the "Require Server Name Indication" checkbox, and select the SSL certificate
"MySiteCert" (or the friendly name you entered during the certificate creation). Test your site
by opening a web browser and entering "https://mysite.local/", and you shouldn't be getting
any invalid certificate warnings.