Short answer is you don’t within Strapi itself, you would need to use a proxy application like Caddy, HAProxy, or nginx locally. We have various sample configs on our documentation:
We don’t support native SSL on Strapi itself due to how node functions, when a production cert has to be renewed, a new cert is issued which would require Strapi to restart to load it.