nfx/slrp

Curl command in ReadMe no longer works

Closed this issue · 3 comments

The curl command in the readme no longer works and I am not sure how to make it work with a self signed cert. I keep getting the following error when running the command:

curl -D - -k -x https://127.0.0.1:8090 -k http://httpbin.org/ip

curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Downgrading from 0.3.0 fixed it.

Have the same problem with 0.3.0 version.

According to the curl documentation, --proxy-insecure should help. Try this:

~$ curl -D - -k -x https://127.0.0.1:8090 -k http://httpbin.org/ip
curl: (60) SSL certificate problem: self-signed certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

~$ curl --proxy-insecure -D - -k -x https://127.0.0.1:8090 -k http://httpbin.org/ip
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 33
Content-Type: application/json
Date: Tue, 28 Nov 2023 05:22:01 GMT
Server: gunicorn/19.9.0
X-Proxy-Attempt: 1
X-Proxy-Offered: 7
X-Proxy-Serial: <hidden>
X-Proxy-Succeed: 1
X-Proxy-Through: <hidden>

{
  "origin": "<hidden>"
}
nfx commented

@rc5hack Could you pr the fix for readme?