How to setup SSL for localhost or dev environment?

I am not familiar with Dokku or any self-hosted PaaS options.