Skip to content

forum

  1. Obtain the new certificate from SSLMate.
  2. ssh to forum.gitlab.com
  3. Create backup of the certificate (replacing 2019 with whatever year the old certificate started in)
Terminal window
sudo cp /var/discourse/shared/standalone/ssl/ssl.crt{,.2019}
  1. Copy the new certificate to the server as /var/discourse/shared/standalone/ssl/ssl.crt and change the permissions to 544 and owner to root:root
  2. sudo restart app to restart discourse
  3. Done!

Sometimes stuff goes wrong. Good thing we made a backup! :)

  1. Move the new certificate in a safe place
  2. Restore the old certificate by renaming or copying it back.
  3. sudo restart app
  4. Done!