How to renew custom ssl certificate for self hosted gitlab

Copy the certificate (example.com.crt) and private key (example.com.key) files to the gitlab’s ssl directory (/opt/gitlab/ssl/ or /etc/gitlab/ssl/, etc.) and then simply run the command below (with sudo privileges);

sudo gitlab-ctl hup nginx

ref: gitlab docs