{"id":524,"date":"2018-03-24T14:24:53","date_gmt":"2018-03-24T14:24:53","guid":{"rendered":"https:\/\/www.joetannorella.com\/?p=524"},"modified":"2018-03-24T14:24:53","modified_gmt":"2018-03-24T14:24:53","slug":"certbot-wont-renew-certificate","status":"publish","type":"post","link":"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/","title":{"rendered":"Certbot won’t renew certificate"},"content":{"rendered":"

Certbot wouldn’t renew the cert for my domain.<\/p>\n

I decided to venture into the certbot config files (\/etc\/letsencrypt\/ by default) and remove the renewal file so that I could reinstall the cert from scratch:<\/p>\n

rm \/etc\/letsencrypt\/www.joetannorella.com.conf<\/pre>\n

However, when trying to reinstall a cert again (certbot renew), I was getting this:<\/p>\n

renewal config file {} is missing a required file reference<\/span>\r\n\r\nRenewal configuration file \/etc\/letsencrypt\/renewal\/www.joetannorella.com.conf is broken. Skipping.<\/span><\/pre>\n

The mistake I made was not removing all traces of my domain from letscrypt. What you need to do is remove all references to your domain in these locations:<\/p>\n

    \n
  • \/etc\/letsencrypt\/live\/[yourdomain]<\/li>\n
  • \/etc\/letsencrypt\/renewal\/[yourdomain]<\/li>\n
  • \/etc\/letsencrypt\/archive\/[yourdomain]<\/li>\n<\/ul>\n

    Once you’ve done this, you should be able to install a cert again from scratch.<\/p>\n","protected":false},"excerpt":{"rendered":"

    Certbot wouldn’t renew the cert for my domain. I decided to venture into the certbot config files (\/etc\/letsencrypt\/ by default) and remove the renewal file so that I could reinstall the cert from scratch: rm \/etc\/letsencrypt\/www.joetannorella.com.conf However, when trying to reinstall a cert again (certbot renew), I was getting this: renewal config file {} is…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"yoast_head":"\nCertbot won't renew certificate - JoeTannorella.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Certbot won't renew certificate - JoeTannorella.com\" \/>\n<meta property=\"og:description\" content=\"Certbot wouldn’t renew the cert for my domain. I decided to venture into the certbot config files (\/etc\/letsencrypt\/ by default) and remove the renewal file so that I could reinstall the cert from scratch: rm \/etc\/letsencrypt\/www.joetannorella.com.conf However, when trying to reinstall a cert again (certbot renew), I was getting this: renewal config file {} is...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/\" \/>\n<meta property=\"og:site_name\" content=\"JoeTannorella.com\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-24T14:24:53+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/\",\"url\":\"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/\",\"name\":\"Certbot won't renew certificate - JoeTannorella.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.joetannorella.com\/#website\"},\"datePublished\":\"2018-03-24T14:24:53+00:00\",\"dateModified\":\"2018-03-24T14:24:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.joetannorella.com\/#\/schema\/person\/84eafed4ad6cd6934b006e371c06c7ae\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.joetannorella.com\/#website\",\"url\":\"https:\/\/www.joetannorella.com\/\",\"name\":\"JoeTannorella.com\",\"description\":\"Web Development | Digital Marketing | Business\/Startups | Analytics\/data\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.joetannorella.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.joetannorella.com\/#\/schema\/person\/84eafed4ad6cd6934b006e371c06c7ae\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.joetannorella.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/257001162d06da1a465f242dfa80dd7b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/257001162d06da1a465f242dfa80dd7b?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.joetannorella.com\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Certbot won't renew certificate - JoeTannorella.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/","og_locale":"en_US","og_type":"article","og_title":"Certbot won't renew certificate - JoeTannorella.com","og_description":"Certbot wouldn’t renew the cert for my domain. I decided to venture into the certbot config files (\/etc\/letsencrypt\/ by default) and remove the renewal file so that I could reinstall the cert from scratch: rm \/etc\/letsencrypt\/www.joetannorella.com.conf However, when trying to reinstall a cert again (certbot renew), I was getting this: renewal config file {} is...","og_url":"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/","og_site_name":"JoeTannorella.com","article_published_time":"2018-03-24T14:24:53+00:00","author":"admin","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/","url":"https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/","name":"Certbot won't renew certificate - JoeTannorella.com","isPartOf":{"@id":"https:\/\/www.joetannorella.com\/#website"},"datePublished":"2018-03-24T14:24:53+00:00","dateModified":"2018-03-24T14:24:53+00:00","author":{"@id":"https:\/\/www.joetannorella.com\/#\/schema\/person\/84eafed4ad6cd6934b006e371c06c7ae"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.joetannorella.com\/certbot-wont-renew-certificate\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.joetannorella.com\/#website","url":"https:\/\/www.joetannorella.com\/","name":"JoeTannorella.com","description":"Web Development | Digital Marketing | Business\/Startups | Analytics\/data","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.joetannorella.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.joetannorella.com\/#\/schema\/person\/84eafed4ad6cd6934b006e371c06c7ae","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.joetannorella.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/257001162d06da1a465f242dfa80dd7b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/257001162d06da1a465f242dfa80dd7b?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.joetannorella.com\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/posts\/524"}],"collection":[{"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/comments?post=524"}],"version-history":[{"count":1,"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/posts\/524\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/posts\/524\/revisions\/525"}],"wp:attachment":[{"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/media?parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/categories?post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joetannorella.com\/wp-json\/wp\/v2\/tags?post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}