Network Management
Attempting to connect to the SWIS REST endpoint fails because of a self-signed certificate
Attempting to connect to the SWIS REST endpoint using port 17778 fails because of a self-signed certificate.
First published date
Last published date
Overview
Product section
Cause
Resolution
You can configure a work-around for this issue by defining an SSL termination proxy with a custom SSL certificate. Then configure rules on the proxy site to reroute traffic to the SWIS REST endpoint.
-
Download and install Microsoft Application Request Routing (ARR) 3 for IIS. The download site is https://www.microsoft.com/en-us/download/details.aspx?id=47333 (© 2021 Microsoft, available at https://www.microsoft.com, obtained on December 30, 2021).
- Download and install the IIS URL Rewrite Module. The download link is https://download.microsoft.com/download/1/2/8/128E2E22-C1B9-44A4-BE2A-5859ED1D4592/rewrite_amd64_en-US.msi (© 2021 Microsoft, available at https://www.microsoft.com, obtained on December 30, 2021).
- Set up ARR flags for accepting certificates:
- Open the Command Prompt as an administrator.
-
Run the following command:
reg.exe add "HKLM\SOFTWARE\Microsoft\IIS Extensions\Application Request Routing\Parameters" /v SecureConnectionIgnoreFlags /t REG_DWORD /d 0x1100
- Open IIS Manager (open the Start menu and enter Internet Information Service Manager).
- Configure Application Request Routing:
- In the navigation tree on the left, click the root item (the machine name).
- In the IIS section, double-click Application Request Routing Cache.
- In the right panel, click Server Proxy Settings.
- Select Enable proxy.
- In the right panel, click Apply.
- Configure the HTTPS listener:
- In the IIS navigation tree on the left, click Sites.
-
In the right panel, click Add Website.
The Add Website dialog box opens.
- In the Site name field, enter
SwisProxy. - In the Physical path field, enter
C:\inetpub\SwisProxy. (Create this folder if it does not exist.) - Under Type, select HTTPS from the Type drop-down menu.
- Select your SSL certificate from the SSL Certificate drop-down menu.
- Click OK.
- Configure forwarding:
- Open the
C:\inetpub\SwisProxyfolder. -
In a text editor, create a file named
web.config, and add the following content:<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{CACHE_URL}" pattern="^(https?)://" /> </conditions> <action type="Rewrite" url="{C:1}://127.0.0.1:17778/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration> - Save the file and close it.
- Open the
Verify that the setup works
Access following addresses from a browser. Enter the Orion web credentials when prompted:
-
Original address:
https://localhost:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeId+FROM+Orion.Nodes -
New address (the outcome of the workaround):
https://localhost/SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeId+FROM+Orion.Nodes
In both cases the outcome should be the same JSON file, depending on number of nodes in Orion database. For example:
{"results":[
{"NodeId":1}
]}