I recently needed a braindead https server that was mildly configurable. Ruby Webrick provides a very simple HTTPS webserver in their examples. I modified it for sane defaults and some configuration:
It automatically creates a self signed cert and by default serves the current directory over port 8443. You can change with -p port and -d directory.