You want to deliver a PAC file from Edge SWG (ProxySG) over HTTPS.
The Edge SWG (ProxySG) does not have the option to serve the PAC file from the Proxy using an HTTPS service. Instead, you will need to configure a Reverse Proxy HTTPS service.
Additionally, client browsers must be configured to trust the Proxy Certificate when opening the Proxy Web Management Console.
First, go to Configuration > Services > Proxy Services > Manage Groups:
Then select the + Add Group tab on the upper right. Choose a name for your newly added group. Apply tab.
This will take you to the Proxy Services page. Click on the Save tab on the right.
From the Configuration > Services > Proxy Services, select the + Add Service tab.
From the add service page:
Inside the Windows Service Group
On Proxy settings
Keyring
Listeners
Which brings up this window:
Enter the source addresses using your internal network IPs, which will request the PAC file.
Destination address, select Explicit
Port range, use the port that you want to dedicate to serve the PAC file, in this example 8088.
Action, Intercept, and select Add. Then Save. Your new service will now be listed un the Proxy Services table.
The most important step is to configure browsers to trust the Proxy certificate when accessing the PAC file. Once configured, you can use the Edge SWG explicit Proxy IP address to serve the PAC file over HTTPS.
For example:
https://10.10.10.20:8088/accelerated_pac_base.pac
Recommend testing the URL with the browser by visiting the address to verify that the PAC file is being served or showing an untrusted certificate warning.