Learn how to configure an http or https proxy if your device needs to connect to the internet through a proxy server.
Enable a proxy using a manual script
- To configure a proxy, you need to run a manual script:
- Script name: edge-install.ps1
- Runtime: PowerShell
- Requirements: Data connector already installed (msi)
When running the installation script, use the following example command, specifying the ProxyUrl as explained:
edge-install.ps1 -ProxyEnabled "true" -ProxyUrl "https://x.x.x.x:1234"
This command configures the installer to connect to the internet through the specified proxy.
The -ProxyUrl parameter specifies the address of the proxy server and should be formatted as follows: <scheme>://<hostname>:<port>
- <scheme> is http or https
- <hostname> is the address of the proxy server (for example, proxy.example.com)
- <port> is the port number used to connect (for example, 8080)
You can also refer to this parameter explanation in the Amazon documentation.
Note: If the proxy was configured before and edge-install is used again, it will enable the proxy automatically since it remembers the previous setting. - To configure an https proxy, a trusted certificate is also required.
To configure a new trusted certificate, another parameter is needed (this can be combined with the proxy command above).
- Script name: edge-install.ps1
- Runtime: PowerShell
- Requirements: Data connector already installed (msi)
To enable a proxy certificate, use the following example command:
edge-install.ps1 -ProxyCertFilePath "C:\Users\<Username>\Desktop\exampleCertificate.pem"
The -ProxyCertFilePath specifies the path to the certificate file. Specify the appropriate path for your certificate. See below for how to obtain a certificate.
If you want, you can complete steps 1 and 2 for an https proxy at the same time by running the command:
edge-install.ps1 -ProxyCertFilePath "C:\Users\<Username>\Desktop\exampleCertificate.pem" -ProxyEnabled "true" -ProxyUrl " https://x.x.x.x:1234"
Note: If the https proxy certificate was configured before and edge-install is used again, it will enable the certificate automatically since it remembers the previous setting too. -
If you need to disable the http/https proxy, you can use the following command:
edge-install.ps1 -ProxyEnabled "false" -ProxyCertFilePath ""
Obtain a certificate from a website
- Network traffic is routed through a proxy
- A proxy certificate is installed on the machine and is being used by Chrome
- Use a machine that:
- Is already configured to use a proxy
- Has the proxy certificate installed
- Has Chrome installed and Chrome is using the certificate
- Open Chrome.
- Visit a website that is not blocked by proxy.
- Open the website connection details panel. This is the small button at the left-most side of the URL bar (at the top of Chrome).
- Click on the "connection is secure" option.
- Click on the "certificate is valid" option.
- In the panel that opens:
- Verify the certificate is valid and matches the proxy certificate by checking the name and expiration date.
- Click on details.
- Click on export on the bottom.