SSL for local domain

I currently access my HA locally via http://ha.local
I don’t want my HA to be accessible from outside

I would like to configure SSL as some web features only work via https.
Is it possible?