Creating a Self-Signed Certificate

From Lianjapedia
Revision as of 13:14, 5 February 2021 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

Under Construction

Overview

See Also

Windows

Create Certificate

Create the certificate in an administrator PowerShell:

Create Self-Signed Certificate


Here the minimum required parameters have been used:

New-SelfSignedCertificate -DnsName "win-cutd9v4hrbs.lianja.local", "win-cutd9v4hrbs" \
-CertStoreLocation "cert:\LocalMachine\My"

See here for full details on the PowerShell New-SelfSignedCertificate cmdlet

Then, to access the https web site from Chrome only, follow these steps:

To access the https web site from Edge and/or Firefox (and Chrome), continue to Export Certificate

Export Certificate

In Internet Information Services (IIS) Manager, open the Server Certificates for the server and you should see your newly created self-signed certificate.

Click View, then Copy to File... in the Details tab:

Export Certificate


Click Next on the welcome screen:

Export Certificate


Select whether to export the private key with the certificate:

Export Certificate


Select the export file format:

Export Certificate


Select the location for the file and specify the file name:

Export Certificate


Click Next to confirm the file name and location:

Export Certificate


Review the details and click Finish to export:

Export Certificate


You should now see the 'export was successful' message:

Export Certificate


Install Certificate

In Windows Explorer, locate the file created by the Export Wizard, right-click on the file and select Properties:

Install Certificate


On the welcome screen, select the store location and click Next:

Install Certificate


In the certificate store screen, click Browse... and select Trusted Root Certification Authorities, then click OK and Next:

Install Certificate


Confirm the certificate store location and click Next:

Install Certificate


Review the settings and click Finish:

Install Certificate


You should now see the 'import was successful' message:

Install Certificate


Add Site Binding

In Internet Information Services (IIS) Manager select the web site and click Bindings, then click Add... to create a new https binding or Edit... to modify an existing one:

Site Bindings


Add/edit the https type binding and select the self-signed SSL certificate you created:

Site Bindings


Review the settings then click OK:

Site Bindings


Restart the website.

Edge

After completing the steps above, you will now be able to access your https site from Edge:

Edge


Note: here the Default Document has been redirected to the Lianja login page. See [Redirect Default Document] for details.

Firefox

Firefox


Firefox


Firefox


Firefox


Firefox


Chrome

Chrome


Chrome


Chrome


Chrome


Chrome


Chrome


Chrome


Chrome


Chrome


Linux