December 23rd, 2013

Ok my home automation has https support now. Tornado is a breeze when it comes to configuring ssl support.

Created personal certs
openssl genrsa -out ca.key 4096
openssl req -new -x509 -days 1826 -key ca.key -out ca.crt

Added couple of lines in main.py
ssl_options={
"certfile": os.path.join("/home/pi/hooooh", "ca.crt"),
"keyfile": os.path.join("/home/pi/hooooh", "ca.key"),
}

Enabled secure web sockets by repointing URL to “wss”

And Tadaaa!!!

https working

Facebook comments:



Content Protected Using Blog Protector By: PcDrome.