How to install Discourse in the AWS EC2 Instances(Ubuntu Server LTS)?

Isn’t I need to generate a certificate again when I rebooted Instance?