Friday, July 13, 2012

Give the absolute path for a client certificate with curl

If you're expecting curl --cert somefile.pem to work, and you keep getting 403s in response, it might be because your curl is compiled against NSS, and that cert is being interpreted as an alias to an NSS DB entry. Use curl --cert ./somefile.pem instead. Fwiw, this is documented in the curl man page, but who looks there?

...Or use wget instead.

No comments:

Post a Comment

Post a Comment

© 2012 James Bowes. Icons by glyphicons. Powered by Blogger.