The Tabletop Simulator uses Unity, which doesn't quite work on Mac OS when it comes to TLS connections - due to using SSLv2, which is insecure and blocked everywhere.
There's this solution, but it didn't work for me because I didn't find the modules in question.
The solution was, of course, to write a little Proxy. paste.ee requires the hostname in the request, so to avoid hacking my own request from scratch I just juggle the hosts file (with delays, to make sure Ruby picks up the change) and let Webrick do the heavy lifting.
This proxy receives requests from Tabletop Simulator, forwards them to paste.ee, and returns them. Because the Unity guys are lenient with other bits of security, too, and only check the hostname in the certificate and not whether there's a valid certificate chain, I can just set my self-signed certificate to "I'm paste.ee, honest!", and they'll believe me.
How to use, given Ruby and the webrick gem (gem install webrick):
- copy your /etc/hosts to /etc/hosts_with_bypass and /etc/hosts_without_bypass
- add this as last line to /etc/hosts_with_bypass
127.0.0.1 paste.ee
Then, simply run:
sudo ruby unity_proxy.rb
sudo
becuase you're listening to port 443, and only root is allowed to do that. Stop with Ctrl-C after you're done - this will also clean up the hosts file again.
If you use other modules with other hosts, you'll have to rewrite /etc/hosts differently, and change the URI and the certificate's host name. It doesn't always work, but most of the time (just ignore the handshake error messages when it's loading models).
Hey! This appears to search for a hosts_with_paste file whereas in your GIST you've indicated to rename it to hosts_with_bypass