Resolved: Fix SSL renewal issue on Gitlab Server

PROBLEM : I had hosted a gitlab server on Azure and it was not getting autorenewed. SOLUTION :  1. Check the current SSL cert path: sudo grep -n "ssl_certificate" /var/opt/gitlab/nginx/conf/gitlab-http.conf OR sudo grep -n "ssl_certificate" /etc/gitlab/gitlab.rb  You are likely to see something like this: nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.example.com.crt" nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.example.com.key"  2. In my case, I was using gitlab let'sencrypt. So, I installed certbot. sudo apt update && sudo apt install certbot -y  3. Obtain Fresh Certificate sudo gitlab-ctl stop nginx sudo certbot certonly --standalone -d gitlab.yourdomain.com sudo gitlab-ctl start nginx 4. Configure Gitlab to use new cert external_url "https://gitlab.yourdomain.com" letsencrypt['enable'] = false nginx['s...

Learn with free Azure DevOps and free Azure Dev Essentials

You can create a free dev essentials account on Azure. You will get $25/month for a year and this does not need a credit card.

You can start with Azure DevOps (VSTS formerly) and can have 5 free Basic and Package Management licenses.

Please note if you are just learning and have your source on github Azure Build and Release pipelines are 100% free for you.

Do you know, you can make public projects using Azure DevOps as well.


To know more: Register for the event today!

https://www.eventbrite.com/e/azure-devops-community-launch-event-mohali-2019-tickets-53968764026