Error connecting to a remote AMIS Service via Auth Harness Prime
2 years ago
Originally Published: 2020-12-28
Article Number
000045112
Applies To
RSA Product Set: RSA SecurID
RSA Product/Service Type: Packaged Custom Application
RSA Version/Condition: SID Access Prime
Platform: null
Platform (Other): null
O/S Version: null
Product Name: null
Product Description: null
Issue
Error connecting to a remote AMIS component via Auth Harness Prime.

User-added image

url: http://192.168.2.236:8080/auth/authn
Content
<Authentication type="token">
    <token userID="hdadmin" passcode="1234" />
</Authentication>
--- RESPONSE --
***** Error ******
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.2.236:8080
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at RSA.Ucm.TDS.Client.WebDriver.ProcessThisRequst(String url, String payloadData, String contentType, WebMethod method, String token) in C:\dev\tfs\Products\Prototypes\tdsharness\TDSClient\WebDriver.cs:line 122
   at RSA.Ucm.TDS.Client.WebDriver.Post(String url, String payloadData, String contentType, String token) in C:\dev\tfs\Products\Prototypes\tdsharness\TDSClient\WebDriver.cs:line 106
   at tdsAuthenticate.MainWindow.<processPost>b__2(String u, String p) in C:\dev\tfs\Products\Prototypes\tdsharness\tdsAuthenticate\MainWindow.xaml.cs:line 171
   at tdsAuthenticate.MainWindow.processWebResponse(String url, String payLoad, Func`3 webProc) in C:\dev\tfs\Products\Prototypes\tdsharness\tdsAuthenticate\MainWindow.xaml.cs:line 149
Cause
By default, only localhost is allowed access to port 8080.
Resolution
1) Make a copy of your current server.xml file.

cd /opt/rsa/primekit/tomcat/tomcat-amis/conf

cp server.xml server.xml.original

2) Edit the server.xml file.

vi server.xml

3) Search for IP 127.0.0.1. You should find the following session.

<Connector port="${tomcat.http.localhost.port}" protocol="${tomcat.protocol}"
redirectPort="${tomcat.http.localhost.port}" address="127.0.0.1" server="Unspecified" xpoweredBy="false" />

3.1) Delete <address="127.0.0.1">. It should end up like this:

<Connector port="${tomcat.http.localhost.port}" protocol="${tomcat.protocol}"
redirectPort="${tomcat.http.localhost.port}" server="Unspecified" xpoweredBy="false" />

3.2) Save and exit.
:wq!

4) Restart all AMPrime Services.

5) After that connect again.

http://192.168.2.236:8080/auth/authn