I'm fairly new to HTTPS and therefore risk this being a dumb question. I have a server hosted on my Raspberry Pi that allows me to configure it remotely, over a network and I'd like to convert to HTTPS to make it more secure. But since the IP address of the device changes from time to time due to DHCP, I'm not sure how to provide the certificate.
The best solution I've had so far is to generate a self signed certificate every time the device boots up and add security exceptions to my browser which doesn't seem like the best approach to me.
Apart from making it Static IP, is there any other solution I can use?