Created attachment 203028 [details] Build shellinabox with SSL from ports By default, shellinabox is configured not to be linked against an SSL implementation. Instead, it dlopen's libcrypto.so at runtime: https://github.com/shellinabox/shellinabox/blob/4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361/libhttp/ssl.c#L206-L222 This means that - unless LD_LIBRARY_PATH is set - shellinabox always picks up openssl from base. This is the cause of this issue: https://github.com/shellinabox/shellinabox/issues/453 The patch attached turns off runtime loading and set CFLAGS and LDFLAGS so that openssl from base is picked up (if it's there). The PAM code doesn't build without runtime loading, so I just turned it off. I can try to find the time to look into it as well, if needed.
A commit references this bug: Author: olivier Date: Thu Mar 21 15:05:14 UTC 2019 New revision: 496469 URL: https://svnweb.freebsd.org/changeset/ports/496469 Log: Fix: build against SSL from ports and connection problem with TLS 1.3 PR: 236697 Submitted by: gahr Changes: head/www/shellinabox/Makefile
Thanks for the troubleshooting and patch!