I'd like to use feh to open an image located on a server using a self-signed certificate. Is there any way to achieve this? I checked the man page in hope of finding something similar to curl's -k, but no such luck.


If curl's -k is convenient for you, you might just want to use it, actually:

curl -sk https://domain.tld/path/to/image.png | feh -

The dash here will have feh read the image data from the standard input. With this trick, you can let the "downloading" part to curl (which is what feh uses internally anyway) and pipe everything to feh for display. You're basically splitting what feh combines back into two parts, in order to enjoy the full set of options and features of each component.

| improve this answer | |
  • Absolutely perfect! You'd think the idea of piping the data from a program that does what you want would be a natural first go-to for a linux user...not feeling too skillful atm. – EvenLisle Sep 24 '15 at 10:04
  • Perhaps you also have the answer to my follow-up question (unix.stackexchange.com/questions/231817/…)? :P – EvenLisle Sep 24 '15 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.