I'm trying to test the SSL connection on one of my servers. The server is behind a LB so it's listening for SSL connections on the port 8090.
I have use the
--resolve option to test when talking to the LB which listens on port 443.
curl --resolve 'myservice.com:443:220.127.116.11' 'https://myservice.com'
but when I do:
curl --resolve 'myservice.com:8090:18.104.22.168' 'https://myservice.com:8090'
curl simply ignores the port and goes with 443. Of-course, this causes the DNS cache to miss and I end-up using the public DNS IP...
* Added myservice.com:8090:22.214.171.124 to DNS cache * About to connect() to myservice.com port 443 (#0) * Trying 126.96.36.199... * Connected to myservice.com (188.8.131.52) port 443 (#0)
How can I force curl to use the port 8090 for an SSL connection?