Hi,
I've added functionality to the ssl-cert-lua branch to dynamically generate certificates on request. You can read the howto here:
http://blog.dutchcoders.io/openresty-with-dynamic-generated-certificates/
Let me know if you've got any ideas or suggestions,
Remco