{"id":7146,"date":"2017-04-03T16:52:09","date_gmt":"2017-04-03T16:52:09","guid":{"rendered":"http:\/\/hostileblog.com\/?p=4516"},"modified":"2020-05-30T21:35:24","modified_gmt":"2020-05-31T01:35:24","slug":"move-renew-letsencrypt-ssl-certificate","status":"publish","type":"post","link":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/","title":{"rendered":"How to move or renew LetsEncrypt SSL certificate manually?"},"content":{"rendered":"\n

As mentioned in my earlier blog post, I am using LetsEncrypt free SSL certificate<\/a> on one of my sites. The certificate<\/span> was due to expire in few weeks. The CertBot dispatched an alert message for the same on my official email address.<\/p>\n\n\n\n

As I’m using SSL<\/span> for the first time and having several doubts in mind, I decided to renew LetsEncrypt certificate<\/span> immediately. I fired the following command in the Linux terminal (10 days prior the certificate<\/span>‘s expiry date) and restarted Nginx.<\/p>\n\n\n\n

certbot renew<\/code><\/p>\n\n\n\n

My misconception that the CertBot allows users<\/span> to renew SSL<\/span> certificate<\/span> only on\/before the expiry date was wrong. CertBot renewed my SSL<\/span> certificate<\/span> within few seconds. Now, the certificate<\/span> will expire in July instead of April.<\/p>\n\n\n\n

\"renew<\/figure><\/div>\n\n\n\n

Moving SSL<\/span> certificates<\/span><\/h2>\n\n\n\n

I’ve seen many people complaining that they’re unable to move their LetsEncrypt SSL<\/span> certificate<\/span> from one server<\/span> to another.<\/p>\n\n\n\n

Folks, migrating SSL<\/span> certificate<\/span> is dead easy. If you’re using an unmanaged hosting service<\/a>, create a tar<\/span> gzip archive of the \/etc\/letsencrypt directory and the directory where the web server<\/span> configuration files are stored.<\/p>\n\n\n\n

Once you do so, use SFTP to move the compressed archives to the new server<\/span>.<\/p>\n\n\n\n

Follow the below procedure:<\/p>\n\n\n\n

Enter the command sftp username@ipaddress<\/code> in the terminal. Don’t forget to replace the username<\/span> and IP address.<\/p>\n\n\n\n

If the server<\/span> is allowing sftp connections, you’ll be prompted to enter a password. Enter the password and hit enter. Use PUT<\/span> command to upload the archives to the server<\/span>.<\/p>\n\n\n\n

Example: put file_name.tar.gz<\/p>\n\n\n\n

Extract the folders and replace the old directories.<\/p>\n\n\n\n

Install the web server<\/span>, the backend database server<\/span>. Configure them to serve the server<\/span> side code.<\/p>\n\n\n\n

Now, install CertBot<\/a> on your Ubuntu, Centos, Fedora VPS and restart the Apache<\/span>, Nginx or any other web server<\/span> you’re currently using.<\/p>\n\n\n\n

If you use shared hosting service<\/a>, you can use the CPanel<\/span> to create new SSL<\/span> certificate<\/span>. Once your certificate<\/span> is ready, make sure that the HTTP to HTTPS redirects<\/a> are working correctly.<\/p>\n\n\n\n

You can follow the same steps to move certificates<\/span> provided by other companies.<\/p>\n\n\n\n

Conclusion<\/strong>: My experiences with LetsEncrypt<\/a> has been great so far. If you want to enable HTTPS on your site, use LE. It is free. Furthermore, configuring, renewing or moving LetsEncrypt certificates<\/span> is an easy task.<\/p>\n","protected":false},"excerpt":{"rendered":"

As mentioned in my earlier blog post, I am using LetsEncrypt free SSL certificate on one of my sites. The certificate was due to expire in few weeks. The CertBot dispatched an alert message for the same on my official email address. As I’m using SSL for the first time and having several doubts in mind, I […]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[11413,7003,7038,7041,7051],"post_series":[],"yoast_head":"\nHow to move or renew LetsEncrypt SSL certificate manually? - Ian Carnaghan<\/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.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to move or renew LetsEncrypt SSL certificate manually? - Ian Carnaghan\" \/>\n<meta property=\"og:description\" content=\"As mentioned in my earlier blog post, I am using LetsEncrypt free SSL certificate on one of my sites. The certificate was due to expire in few weeks. The CertBot dispatched an alert message for the same on my official email address. As I’m using SSL for the first time and having several doubts in mind, I […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/\" \/>\n<meta property=\"og:site_name\" content=\"Ian Carnaghan\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-03T16:52:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-31T01:35:24+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg\" \/>\n<meta name=\"author\" content=\"Pramod\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@icarnaghan\" \/>\n<meta name=\"twitter:site\" content=\"@icarnaghan\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pramod\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/\"},\"author\":{\"name\":\"Pramod\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb\"},\"headline\":\"How to move or renew LetsEncrypt SSL certificate manually?\",\"datePublished\":\"2017-04-03T16:52:09+00:00\",\"dateModified\":\"2020-05-31T01:35:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/\"},\"wordCount\":388,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\"},\"image\":{\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg\",\"keywords\":[\"Affiliate\",\"Apache\",\"Nginx\",\"Security\",\"Tips\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/\",\"url\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/\",\"name\":\"How to move or renew LetsEncrypt SSL certificate manually? - Ian Carnaghan\",\"isPartOf\":{\"@id\":\"https:\/\/www.carnaghan.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg\",\"datePublished\":\"2017-04-03T16:52:09+00:00\",\"dateModified\":\"2020-05-31T01:35:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage\",\"url\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg\",\"contentUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.carnaghan.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to move or renew LetsEncrypt SSL certificate manually?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.carnaghan.com\/#website\",\"url\":\"https:\/\/www.carnaghan.com\/\",\"name\":\"Ian Carnaghan\",\"description\":\"Software Developer, Blogger, Educator\",\"publisher\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.carnaghan.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\",\"name\":\"Ian Carnaghan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"caption\":\"Ian Carnaghan\"},\"logo\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\"},\"description\":\"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.\",\"sameAs\":[\"http:\/\/www.carnaghan.com\",\"https:\/\/x.com\/icarnaghan\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb\",\"name\":\"Pramod\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g\",\"caption\":\"Pramod\"},\"description\":\"My name is Pramod. I\u2019m a software developer (with good knowledge on PHP, JAVA \u2013 Android, JavaScript, CSS), blogger and online marketing professional. I\u2019ve 3 years of experience as a blogger and 2 years of full time experience as a software developer.\",\"url\":\"https:\/\/www.carnaghan.com\/author\/prhost78\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to move or renew LetsEncrypt SSL certificate manually? - Ian Carnaghan","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.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/","og_locale":"en_US","og_type":"article","og_title":"How to move or renew LetsEncrypt SSL certificate manually? - Ian Carnaghan","og_description":"As mentioned in my earlier blog post, I am using LetsEncrypt free SSL certificate on one of my sites. The certificate was due to expire in few weeks. The CertBot dispatched an alert message for the same on my official email address. As I’m using SSL for the first time and having several doubts in mind, I […]","og_url":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/","og_site_name":"Ian Carnaghan","article_published_time":"2017-04-03T16:52:09+00:00","article_modified_time":"2020-05-31T01:35:24+00:00","og_image":[{"url":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg"}],"author":"Pramod","twitter_card":"summary_large_image","twitter_creator":"@icarnaghan","twitter_site":"@icarnaghan","twitter_misc":{"Written by":"Pramod","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#article","isPartOf":{"@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/"},"author":{"name":"Pramod","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb"},"headline":"How to move or renew LetsEncrypt SSL certificate manually?","datePublished":"2017-04-03T16:52:09+00:00","dateModified":"2020-05-31T01:35:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/"},"wordCount":388,"commentCount":0,"publisher":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5"},"image":{"@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage"},"thumbnailUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg","keywords":["Affiliate","Apache","Nginx","Security","Tips"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/","url":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/","name":"How to move or renew LetsEncrypt SSL certificate manually? - Ian Carnaghan","isPartOf":{"@id":"https:\/\/www.carnaghan.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage"},"image":{"@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage"},"thumbnailUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg","datePublished":"2017-04-03T16:52:09+00:00","dateModified":"2020-05-31T01:35:24+00:00","breadcrumb":{"@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#primaryimage","url":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg","contentUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2017\/04\/letsencrypt.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.carnaghan.com\/move-renew-letsencrypt-ssl-certificate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.carnaghan.com\/"},{"@type":"ListItem","position":2,"name":"How to move or renew LetsEncrypt SSL certificate manually?"}]},{"@type":"WebSite","@id":"https:\/\/www.carnaghan.com\/#website","url":"https:\/\/www.carnaghan.com\/","name":"Ian Carnaghan","description":"Software Developer, Blogger, Educator","publisher":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.carnaghan.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5","name":"Ian Carnaghan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","caption":"Ian Carnaghan"},"logo":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/"},"description":"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.","sameAs":["http:\/\/www.carnaghan.com","https:\/\/x.com\/icarnaghan"]},{"@type":"Person","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb","name":"Pramod","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g","caption":"Pramod"},"description":"My name is Pramod. I\u2019m a software developer (with good knowledge on PHP, JAVA \u2013 Android, JavaScript, CSS), blogger and online marketing professional. I\u2019ve 3 years of experience as a blogger and 2 years of full time experience as a software developer.","url":"https:\/\/www.carnaghan.com\/author\/prhost78\/"}]}},"views":633,"_links":{"self":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts\/7146"}],"collection":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/comments?post=7146"}],"version-history":[{"count":0,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts\/7146\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/media?parent=7146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/categories?post=7146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/tags?post=7146"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/post_series?post=7146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}