How to Renew SSL for Discourse Using Terminal

To renew the SSL certificate for your Discourse installation, you can follow these steps:

  1. Delete the old certificate files by running the following commands in the terminal:

    rm -rf /var/discourse/shared/standalone/ssl
    rm -rf /var/discourse/shared/standalone/letsencrypt
    
  2. Rebuild the Discourse app to generate new SSL certificates. Execute the command:

    ./launcher rebuild app
    

By deleting the old certificate files and rebuilding the Discourse app, you can initiate the process of renewing the SSL certificate. This ensures that your Discourse instance continues to use a valid and up-to-date SSL certificate.