> For the complete documentation index, see [llms.txt](https://ceh-practical.cavementech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ceh-practical.cavementech.com/module-20.-cryptography/2.-create-a-self-signed-certificate.md).

# 2. Create a self signed Certificate

## 1. Create and use self signed certificates

1. Click the **Type here to search** icon present in the bottom-left of **Desktop** and type **iis**. Select **Internet Information Services (IIS) Manager** from the results.
2. The **Internet Information Services (IIS) Manager** window appears; click the machine name (**SERVER2019 (SERVER2019\Administrator**)) under the **Connections** section from the left-hand pane.
3. In **SERVER2019 Home**, double-click **Server Certificates** in the **IIS** section.

   ![](https://labondemand.blob.core.windows.net/content/lab168802/instructions255479/1.8.jpg)
4. The **Server Certificates** wizard appears; click **Create Self-Signed Certificate…** from the right-hand pane in the **Actions** section.

   ![](https://labondemand.blob.core.windows.net/content/lab168802/instructions255479/1.9.jpg)
5. The **Create Self-Signed Certificate** window appears; type **GoodShopping** in the **Specify a friendly name for the certificate** field. Ensure that the **Personal** option is selected in the **Select a certificate store for the new certificate** field; then, click **OK**.

   ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/4qdrxtzl.jpg)
6. A newly created self-signed certificate will be displayed in the **Server Certificates** pane, as shown in the screenshot.

   ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/xskh3kri.jpg)
7. Expand the **Sites** node from the left-hand pane, and select **GoodShopping** from the available sites. Click **Bindings…** from the right-hand pane in the **Actions** section.

   ![](https://labondemand.blob.core.windows.net/content/lab168802/instructions255479/1.12.jpg)
8. The **Site Bindings** window appears; click **Add…**.

   ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/4ab5tw3t.jpg)
9. The **Add Site Binding** window appears; choose **https** from the **Type** field drop-down list. Once you choose the https type, the port number in the **Port** field automatically changes to **443** (the channel on which HTTPS runs).
10. Choose the **IP address** on which the site is hosted (here, **10.10.1.19**).
11. Under the **Host name** field, type **[www.goodshopping.com](http://www.goodshopping.com)**. Under the **SSL certificate** field, select **GoodShopping** from the drop-down list, and click **OK**.

    ![](https://labondemand.blob.core.windows.net/content/lab168802/instructions255479/16O.jpg)
12. The newly created SSL certificate is added to the **Site Bindings** window; then, click **Close**.

    ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/dagzlt3n.jpg)
13. Now, right-click the name of the site for which you have created the self-signed certificate (here, **GoodShopping**) and click **Refresh** from the context menu.

    ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/j1jleifa.jpg)
14. Minimize the **Internet Information Services (IIS) Manager** window.
15. Open the **Mozilla Firefox** browser and go to **<https://www.goodshopping.com>**.
16. The **Warning:Potential Security Risk Ahead** message appears, click **Advanced…** to proceed.

    ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/ztn4vn24.jpg)
17. Click **Accept the Risk and Continue**.

    ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/5lbzuctl.jpg)
18. Now you can see **Goodshopping webpage** with **ssl certificate** assigned to it, as shown in the screenshot.

    ![](https://labondemand.blob.core.windows.net/content/lab168802/screens/so4s3b4f.jpg)

{% embed url="<https://www.udemy.com/course/ethical-hacker-practical/?referralCode=289CF01CF51246BCAD6C>" %}
