SSL configurations differ from one installation to the next. Here is one approach to the setup of NGINX using SSL, see https://nginx.org/en/docs/http/configuring_https_servers.html.
For information on generating self-trusted certificates for local testing and development purposes, see https://letsencrypt.org/docs/certificates-for-localhost/.