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...

About Me

I am Co-founder and Chief Technology Officer at niwi.ai with 12+ years of experience in web applications and custom software development with the highest degree of quality and consistency.

I have worked in Telecom, Insurance and Medical Industries and have worked with Indian as well as US and UK based clients. Some of the clients I have worked with include British Petroleum, Cablevision, Word & Brown and Dignity Health (Common Spirit Health).

I have substantial experience in collaborating and working with geographically dispersed Teams to delivery high quality, maintainable and reliable business solutions to our clients.

Out of work, I like writing poetry in my native language in Hindi/Punjabi. I am a happy son, husband and father.

Also, I am an open teacher and speaker and organize meetups.

Here are the technologies, I have been working on:


·       Frontend Technologies: HTML, JavaScript, CSS3, jQuery, Angular, Angular 2+, Knockout, Ionic, TypeScript, NodeJS
·       Backend Technologies: C#, ASP.Net MVC, ASP.Net Web API, php, NodeJS
·       Tools and Frameworks:
o   IDE: Visual Studio, VS Code, Eclipse
o   Project Management: VSTS, TFS, GitHub, Gitlab, Bitbucket
o   Database & Reporting Tools: SSMS, MySQL Workbench, phpMyAdmin, SSRS
o   Rest clients: Swagger, Postman, Fiddler, Soap UI
o   CMS and Ecommerce Customization: WordPress, Magento, Woocommerce, OpenCart, SharePoint
o   Hosting: Linux Hosting, IIS Hosting, Microsoft Azure App Services.
o   Cloud: Microsoft Azure
·       Certifications and Achievements:
o   MCSD App Builder
o   Infosys Certified Software Engineering Professional

Social Profiles:

  1. LinkedIn
  2. LinkedIn
  3. GitHub