{"id":2233,"date":"2020-03-22T16:16:03","date_gmt":"2020-03-22T20:16:03","guid":{"rendered":"https:\/\/lilithebowman.com\/blog\/?p=2233"},"modified":"2020-03-22T16:16:08","modified_gmt":"2020-03-22T20:16:08","slug":"how-to-fix-gitlab-letsencrypt-renewal-failure","status":"publish","type":"post","link":"https:\/\/www.lilithebowman.com\/blog\/2020\/03\/how-to-fix-gitlab-letsencrypt-renewal-failure\/","title":{"rendered":"How to Fix: Gitlab LetsEncrypt Renewal Failure"},"content":{"rendered":"\n<p>So my LetsEncrypt certificate for Gitlab expired, and I wanted to see if I could manually renew it, since it did not renew on its own.<\/p>\n\n\n\n<p>I was getting an error in the console when running <code>sudo gitlab-ctl renew-le-certs<\/code> that said the response from the server was malformed.<\/p>\n\n\n\n<p>Digging deeper, it seems that it can be really simple to get around.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"362\" src=\"https:\/\/lilithebowman.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot_2020-03-22_16-10-20.png\" alt=\"\" class=\"wp-image-2234\" srcset=\"https:\/\/www.lilithebowman.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot_2020-03-22_16-10-20.png 557w, https:\/\/www.lilithebowman.com\/blog\/wp-content\/uploads\/2020\/03\/Screenshot_2020-03-22_16-10-20-300x195.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/figure>\n\n\n\n<p>Simply edit <code>\/opt\/gitlab\/embedded\/cookbooks\/letsencrypt\/resources\/certificate.rb<\/code> and comment out the lines in the <code>acme_certificate<\/code> section as shown in the image above.<\/p>\n\n\n\n<p>Now you should be able to force the certificate to renew by manually running <code>sudo gitlab-ctl renew-le-certs<\/code> again!<\/p>\n\n\n\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So my LetsEncrypt certificate for Gitlab expired, and I wanted to see if I could manually renew it, since it did not renew on its own. I was getting an error in the console when running sudo gitlab-ctl renew-le-certs that said the response from the server was malformed. Digging deeper, it seems that it can [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[351,71,320,350,352],"class_list":["post-2233","post","type-post","status-publish","format-standard","hentry","category-daily-musings","tag-acme","tag-error","tag-gitlab","tag-letsencrypt","tag-malformed"],"_links":{"self":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts\/2233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/comments?post=2233"}],"version-history":[{"count":1,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts\/2233\/revisions"}],"predecessor-version":[{"id":2235,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/posts\/2233\/revisions\/2235"}],"wp:attachment":[{"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/media?parent=2233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/categories?post=2233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lilithebowman.com\/blog\/wp-json\/wp\/v2\/tags?post=2233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}