Certificates are digital files that help ensure secure communication between a user’s computer and a website, server, or network service. They verify that a connection is legitimate and encrypted, preventing unauthorized access and data interception.

In your case, since you’re developing a proxy for web filtering, installing certificates is an essential first step. This allows your proxy to inspect encrypted traffic without triggering security warnings in browsers or applications. The installation process varies depending on your specific needs, but the steps below will guide you through setting up certificates on both Windows and macOS.


Setting Up Certificates on Windows

Setting up a certificate on Windows ensures your system recognizes and trusts the certificate authority (CA), preventing security warnings when accessing filtered web content through your proxy. Follow the steps below to install a trusted root certificate.

Installing a Trusted Root Certificate

Before proceeding, decide whether you want to install the certificate for just your user account or for the entire machine. If you’re testing or using the proxy only for yourself, installing it under Current User is sufficient. However, if you need system-wide filtering, install it under Local Machine.

Step 1: Current User

This method installs the certificate only for the logged-in user. If you’re testing or developing, this is the quickest way to get started.

  1. Double-click the certificate file.

    Screenshot

  2. If the Open File - Security Warning dialog appears, click Open.

    Screenshot

  3. When the Certificate Wizard opens, click Install Certificate….

    Screenshot

  4. In the Certificate Import Wizard, ensure that Store Location is set to Current User.

    Screenshot

  5. On the Certificate Store page, select Place all certificates in the following store, then click Browse….

    Screenshot

  6. Choose Trusted Root Certification Authorities and click OK.

    Screenshot

  7. Confirm the selected Certificate Store is correct, then click Next.

    Screenshot

  8. On the Completing the Certificate Import Wizard page, click Finish.

    Screenshot

  9. If a Security Warning popup appears, click Yes.

    Screenshot

  10. The certificate import is now complete. Click OK to close any remaining popups.

    Screenshot


Step 2: Local Machine

If you need the certificate to be trusted system-wide for all users, follow these steps. Admin access is required.

  1. Double-click the certificate file.

    Screenshot

  2. If the Open File - Security Warning dialog appears, click Open.

    Screenshot

  3. When the Certificate Wizard opens, click Install Certificate….

    Screenshot

  4. In the Certificate Import Wizard, ensure that Store Location is set to Local Machine.

    Screenshot

  5. If prompted for a password, enter the Administrator password.

    Screenshot

  6. On the Certificate Store page, select Place all certificates in the following store, then click Browse….

    Screenshot

  7. Choose Trusted Root Certification Authorities and click OK.

    Screenshot

  8. Confirm the selected Certificate Store is correct, then click Next.

    Screenshot

  9. On the Completing the Certificate Import Wizard page, click Finish.

    Screenshot

  10. The certificate import is now complete. Click OK to close any remaining popups.

    Screenshot


Verifying Installed Certificates Using Snap-ins

After installation, it’s always a good idea to verify that the certificate is correctly installed. This ensures that your proxy can operate smoothly without running into trust issues.

  1. Open the Start Menu, type mmc, and select Run as Administrator.

    Screenshot

  2. If prompted for a password, enter the Administrator password.

    Screenshot

  3. When the Console1 dialog opens, click File, then select Add/Remove Snap-in.

    Screenshot

  4. In the Add or Remove Snap-ins dialog, select Certificates from the Available Snap-ins list and click Add.

    Screenshot

  5. In the Certificates Snap-in dialog, choose My user account and click Finish.

    Screenshot

  6. Repeat the process by selecting Certificates again from the Available Snap-ins list and clicking Add.

    Screenshot

  7. In the Certificates Snap-in dialog, select Computer account and click Next.

    Screenshot

  8. In the Select Computer dialog, choose Local computer and click Finish.

    Screenshot

  9. Ensure the Selected Snap-ins list includes both Certificates - Current User and Certificates - (Local Computer). Click OK.

    Screenshot

  10. Verify that the certificate is installed by expanding:

    • Certificates - Current UserTrusted Root Certification AuthoritiesCertificates, then scroll through the list to ensure the certificate is present.
    • Certificates - (Local Computer)Trusted Root Certification AuthoritiesCertificates, and ensure the same certificate is listed.

    Screenshot Screenshot

  11. Once verified, close the Console1 dialog. If prompted to save the console, click Yes, and save it with an appropriate name.

    Screenshot Screenshot Screenshot


Setting Up Certificates on MacBook

If you’re using macOS, the process is slightly different but just as simple. This setup ensures that your Mac trusts your proxy’s certificate, preventing security errors when browsing the web.

  1. Press ⌘Command + Space to open Spotlight Search.

    Screenshot

  2. Type Keychain Access and press Enter. Then, select Open Keychain Access to open it.

    Screenshot Screenshot

  3. In Keychain Access, select the System → Certificates tab.

    Screenshot

  4. Drag and drop the downloaded certificate file into Keychain Access.

    Screenshot

  5. Enter your Mac login password when prompted.

    Screenshot

  6. Double-click the added certificate to open its details.

    Screenshot

  7. In the certificate details, expand the Trust section.

    Screenshot

  8. Set the certificate to Always Trust.

    Screenshot Screenshot

  9. Close the certificate details and enter your Mac password again to save the changes.

    Screenshot

  10. The certificate setup is now complete.

    Screenshot


By following this guide, you’ve successfully installed a trusted root certificate on both Windows and macOS. This allows your proxy server to function properly without triggering security warnings.

Now you’re all set! You can proceed with configuring your proxy server and web filtering setup.