w3m is a text browser. I use it a lot if I need to test stuff. Recently, I got an email saying that Emacs Wiki had an invalid certificate. Everything seemed to be fine, however. But a few minutes ago, I tried to run `w3m https://www.emacswiki.org/` from my Terminal (OSX El Capitan) and got an SSL error.
alex@Megabombus:~$ w3m -dump_extra https://www.emacswiki.org/ SSL error: error:00000000:lib(0):func(0):reason(0) w3m: Can't load https://www.emacswiki.org/.
Thanks to twb on #emacs, I found the problem. He said: βWhatβs `ldd` called on OS X? Find out if `w3m` is using `gnutls` or `openssl`.β The equivalent to ldd on OSX is `otool -L`.
As it turns out, a simple reinstall switched from libssl 0.9.8 to 1.0.0 and now it works.
alex@Megabombus:~$ otool -L `which w3m` /usr/local/bin/w3m: /usr/local/lib/libgc.1.dylib (compatibility version 2.0.0, current version 2.3.0) /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0) /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 50.0.0) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) alex@Megabombus:~$ brew reinstall w3m ==> Reinstalling w3m ==> Downloading https://homebrew.bintray.com/bottles/w3m-0.5.3.el_capitan.bottle.tar.gz `#``#``#``#``#``#``#``#``#``#``#``#``#``#`## 100,0% ==> Pouring w3m-0.5.3.el_capitan.bottle.tar.gz πΊ /usr/local/Cellar/w3m/0.5.3: 23 files, 1.7M alex@Megabombus:~$ otool -L `which w3m` /usr/local/bin/w3m: /usr/local/opt/bdw-gc/lib/libgc.1.dylib (compatibility version 2.0.0, current version 2.3.0) /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)
β#Administration β#OSX β#Homebrew