OPNsense – Transparent Caching Filtering Proxy with Virus Scanning – Step 9 CA Cert Deployed with GPO
This is a pretty long guide, even before I added images, so it is broken it into sections. I hope it is easy to follow; if you find any errors, please Contact us!
Step 9 – OPTIONAL – Deploy CA Certificate with GPO
This assumes you are using a Windows Active Directory and want all computers in the environment to obtain the proxy cert automatically. This process works for deploying any cert via GPO, not just a Proxy cert.
- Open Group Policy Management Console
- Find the location you want to create the GPO for (which is a Computer based Policy), right click the OU, and click Create a GPO in this domain, and Link it here. I only wanted it to apply to a specific server group.
- Name the GPO. I like to name it “PC – purpose”, where PC means it is a Computer Policy, but keep to your organization standards.
- Right-click the new GPO and click Edit.
- Expand Computer Configuration->Policies->Windows Settings->Security Settings->Public Key Settings, and click on Trusted Root Certification Authorities.
- Right click Trusted Root Certification Authorities and click Import.
- Click Next
- Select the CA Cert you exported from OPNsense in Step 8. Click Next.
- Ensure Place all certificates in the following store is slected, and also ensure it says Trusted Root Certification Authorities in the box. Click Next.
- Click Finish
- You should now see the cert in the GPO.
- If you have more than one AD server, ensure they have all synced. Easiest way is to verify the new GPO exists in the other servers.
- Now, from a test PC, if you open the Certificates manager (using MMC same as you did in Step 8), then you can see the cert may not be in Trusted Root Certification Authorities->Certificates yet. If not, Open a command prompt (does Not need to be as admin) and run this:
gpupdate /force
- Once that completes, right-click Certificates in MMC, and Click Refresh. You should now see the OPNsense cert in the Trusted Root Certification Authorities->Certificates.
- Now open your browser, access a HTTPS site, and view the certificate. You will see no cert error and you will see the OPNsense cert in use.
This completes Step 9.