curl is not able to get response, RHEL 7.2
Hi,
I have two RHEL 7.2 servers and running below command. Though both servers are made in a similar way, one server can get the curl output with the required token, and another server not. In below output, auth.lb.pre.vuspoint.com is load balancer and I can ping it from this server. This LB is pointing to two servers on backend, which have tokens. Below command (which is failing on this server, but working on other) is supposed to get token from any of those backend server. Code:
[root@serv-portal3 ~]# curl -k --location --request POST "https://auth.lb.pre.vuspoint.com/auth/realms/PRE-REALM/protocol/openid-connect/token" --header "Content-Type: application/x-www-form-urlencoded" --data "client_secret=fd68ddbf-5740-4912-b714-1aaeb453fafc&grant_type=password&client_id=snapshotui_1.1&username=snapshotmpctestuser&password=snapshotmpc" Please suggest, what I am missing and should be checked. Thanks |
I am almost certain you don't get this on the other server:
Code:
NSS error -5961 (PR_CONNECT_RESET_ERROR) Have you done the same test, verbose curl and openssl, on the functioning server? |
Yes, on functioning on, it is working fine
Code:
[root@working-portal3 ~]# openssl s_client -connect auth.lb.pre.vuspoint.com:443 Code:
[root@working-portal3 ~]# ping -c 1 auth.lb.pre.vuspoint.com |
A little more searching (openssl s_client 104) provides suggestions like different openssl versions, you should use TLS anyway, you might be behind a firewall.
I would also trace and analyze the network traffic on both connections. There must be a difference. |
All times are GMT -5. The time now is 02:35 PM. |