I'm working on a product that would connect to a LAN and provide a web server for user/application control, think something like a Hue or Sonos hub. I would like for the web server to be HTTPS only, but that doesn't seem totally feasible as the device won't have a "hostname" and will just that can be validated in the HTTPS requests, it will just obtain an IP address via DHCP.
Is there anyway to create a valid TLS connection or will I always have to disable verification to make a connection?
I have tried using a self-signed certificate on the hub, but requests still fail with
http --verify ./testca.crt https://localhost:1338 http: error: SSLError: hostname '192.168.1.100' doesn't match u'Test-Hub'