HTTPS configuration

Hello, I’m trying to configure my chirpstack server in HTTPS for security reasons, but I can’t understand the configuration guide related to Securing the web-interface and external API How do I set the tls_cert and tls_key in the first place? Do I need to do this with Network and gateway-bridge servers?