brew install stunnel
openssl req -new -x509 -days 9999 -nodes -out /usr/local/etc/stunnel/stunnel.pem -keyout /usr/local/etc/stunnel/stunnel.pem
openssl x509 -subject -dates -fingerprint -in /usr/local/etc/stunnel/stunnel.pem
tee /usr/local/etc/stunnel/stunnel.conf <<ENDOFFILE
pid = /tmp/stunnel.pid
setuid = nobody
setgid = nobody
foreground = yes
client = no
[https]
cert = /usr/local/etc/stunnel/stunnel.pem
accept = 443
connect = 80
ENDOFFILE
sudo stunnel
https://ams.dev/