{"id":12849,"date":"2023-01-06T07:04:10","date_gmt":"2023-01-06T07:04:10","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=12849"},"modified":"2024-12-20T12:18:24","modified_gmt":"2024-12-20T12:18:24","slug":"automcatic-renew-and-generate-ssl-on-your-website-using-lego-client","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/","title":{"rendered":"Generate and auto-renew your SSL certificates"},"content":{"rendered":"\n<p>In my last blog, we learned <a href=\"https:\/\/cloudkul.com\/blog\/how-to-get-free-https-on-your-website-using-lets-encrypt-ssl\/\">how to general SSL certificates<\/a>, here we will learn how to renew those free SSL certificates using the Lego client.<\/p>\n\n\n\n<p>If you&#8217;re using a Let&#8217;s Encrypt certificate for your website, you&#8217;re likely aware it needs renewal every 90 days, and you can automate renewals around 60 days before expiration.<\/p>\n\n\n\n<p>Let&#8217;s Encrypt is a global Certificate Authority (CA) that lets people and organizations around the world obtain, renew, and <a href=\"https:\/\/cloudkul.com\/blog\/generate-and-auto-renew-your-ssl-certificates-without-lego\/\">manage SSL\/TLS certificates<\/a>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h2>\n\n\n\n<p>To follow this article, you need to have the following:<\/p>\n\n\n\n<ol>\n<li>You have an account on Cloudflare.<\/li>\n\n\n\n<li>Your site is running on a Linux machine using Apache or Nginx.<\/li>\n\n\n\n<li>Your site is up and running with the Lego client installed. The Lego client simplifies the process of Let&#8217;s Encrypt Certificate generation. <\/li>\n<\/ol>\n\n\n\n<p>You could use the following commands to install the Lego client.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lego \u2013 LetsEncrypt client<\/h2>\n\n\n\n<p>Lego is a Let\u2019s Encrypt client and ACME library written in Go &#8211; <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>https:\/\/go-acme.github.io\/lego\/<\/strong><\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Install Lego<\/strong><\/h2>\n\n\n\n<p><strong>Note:<\/strong> At the time of this writing, we are using version 4.9.1 for Lego.<\/p>\n\n\n\n<p>These are the steps to download, extract, and copy the Lego client to a directory in your path.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/tmp \n\ncurl -Ls https:\/\/api.github.com\/repos\/xenolf\/lego\/releases\/latest | grep browser_download_url | grep linux_amd64 | cut -d '\"' -f 4 | wget -i -\n\ntar xf lego_v4.9.1_linux_amd64.tar.gz\n<\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_15-07.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"408\" data-id=\"12809\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_15-07-1024x408.png\" alt=\"lego\" class=\"wp-image-12809\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mkdir -p \/opt\/certs\/letsencrypt\nsudo mv lego \/opt\/certs\/letsencrypt\/lego<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/2023-07-21_13-47.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"56\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/2023-07-21_13-47-1024x56.png\" alt=\"lego\" class=\"wp-image-16121\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Cloudflare API key or Token <\/h2>\n\n\n\n<p>First, you need to create an API key that has &#8216;<strong>Read<\/strong>&#8216; access to the zone of your domain and permission to &#8216;<strong>Edit<\/strong>&#8216; DNS in Cloudflare. API Tokens use the standard Authorization. <\/p>\n\n\n\n<p>To create your API Token, you need to go to the &#8216;API Tokens&#8217; section of your user profile  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>https:\/\/dash.cloudflare.com\/profile\/api-tokens<\/strong><\/mark><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_17-04.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"370\" data-id=\"12813\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_17-04.png\" alt=\"api\" class=\"wp-image-12813\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">There are two ways to create your token &#8211; <\/h3>\n\n\n\n<p>You can either create it from scratch through the <strong>&#8220;Create Custom Token&#8221;<\/strong> option or you can start with a predefined template, by selecting <strong>&#8220;Use template&#8221;<\/strong>.<\/p>\n\n\n\n<p>Here, in this case, we will use the <strong>&#8220;Edit zone DNS&#8221;<\/strong> template to create an API Token that can edit a single zone&#8217;s DNS records.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_17-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"554\" data-id=\"12814\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_17-13.png\" alt=\"API\" class=\"wp-image-12814\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>once the template is selected, you need to pick a zone for the API token.<\/p>\n\n\n\n<p>Notice that the DNS Edit permission was already pre-selected. Enter a token descriptive name, then add one more permission-giving zone Read access as shown in the figure below <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"571\" data-id=\"16136\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-8.png\" alt=\"api\" class=\"wp-image-16136\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Once you select <strong>&#8220;Continue to the summary&#8221;,<\/strong> you are given a chance to review the selection.<\/p>\n\n\n\n<p>Here, the resources and permissions are quite simple, but this gives you a chance to make sure you are giving the API Token exactly the correct amount of privilege before creating it.<\/p>\n\n\n\n<p>Once created, you are presented with the API Token. This screen is the only time you will be presented with the secret so be sure to put the secret in a safe place!<\/p>\n\n\n\n<p>Anyone with this secret can perform the granted actions on the resources specified to protect it like a password. <\/p>\n\n\n\n<p>In the below screenshot, we have black-box the secret for obvious reasons. <\/p>\n\n\n\n<p>If you happen to lose the secret, you can always regenerate it from the API Tokens table so you don&#8217;t have to configure all the permissions again <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_18-29.png\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"395\" data-id=\"12823\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_18-29.png\" alt=\"api\" class=\"wp-image-12823\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>In addition to the secret itself, this page provides an example curl request that can be used to verify that the token was successfully created <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>Now, Generate a Let&#8217;s Encrypt Certificate<\/strong> <\/mark><\/h2>\n\n\n\n<p>If you want to generate a new certificate for your domain, browse to the Lego installation directory and then run the following commands<\/p>\n\n\n\n<p><strong>Note:<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"> <\/mark><\/strong>Please remember to replace your CLOUDFLARE_AND_API_TOKEN value, the Domain placeholder with your actual domain name, and the email address placeholder with your email address <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo CLOUDFLARE_DNS_API_TOKEN=Your-token-number .\/lego --dns cloudflare --domains your-domain-name  --email admin@webkul.com --path=\"\/opt\/certs\/letsencrypt\" run<\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"372\" data-id=\"16129\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-6-1024x372.png\" alt=\"ssl\" class=\"wp-image-16129\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Then you will receive two folders within \/opt\/certs\/letsencrypt\/ <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"80\" data-id=\"16124\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-3-1024x80.png\" alt=\"ssl\" class=\"wp-image-16124\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Here, you need to map this key from your web server<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-8 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"275\" data-id=\"16126\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-5-1024x275.png\" alt=\"ssl\" class=\"wp-image-16126\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Restart your webserver, go to the browser, and Enter your domain <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-9 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_18-45.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"349\" data-id=\"12832\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_18-45-1024x349.png\" alt=\"ssl\" class=\"wp-image-12832\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><strong>The SSL has been configured successfully with a validity of 90 days as shown in the above screenshot.<\/strong><\/p>\n\n\n\n<p>Now, to automatically renew your certificates before they expire, you need to write a script to perform the above tasks and schedule a cron job to run the script periodically (e.g. every 60 days ).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Take the following steps &#8211; <\/h2>\n\n\n\n<p>Write a script to renew the SSL certificate at the following path, you can change the path based on your installation. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mkdir -p \/opt\/certs\/letsencrypt\/scripts\n\nsudo nano \/opt\/certs\/letsencrypt\/scripts\/renew-certificate.sh<\/pre>\n\n\n\n<p>nano editor will open the file, enter the following content into the script, and save it depending on if you have Apache and Nginx<\/p>\n\n\n\n<p>Please remember to replace your CLOUDFLARE_AND_API_TOKEN value, the Domain placeholder with your actual domain name, and the Email-Address placeholder with your email address <\/p>\n\n\n\n<p><strong>For Apache:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/bash\n\ncd \/opt\/certs\/letsencrypt\/\n\nsudo CLOUDFLARE_DNS_API_TOKEN=Your API Token .\/lego --dns cloudflare --domains domain.com --email admin@webkul.com --path=\"\/opt\/certs\/letsencrypt\" renew --days 10\n\nsudo systemctl restart apache2<\/pre>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>For Nginx : <\/strong><\/mark><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/bash\n\ncd \/opt\/certs\/letsencrypt\/\n\nsudo CLOUDFLARE_DNS_API_TOKEN=Your API Token .\/lego --dns cloudflare --domains domain.com --email admin@webkul.com --path=\"\/opt\/certs\/letsencrypt\" renew --days 10\n\nsudo systemctl restart nginx<\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-10 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_19-02-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"94\" data-id=\"12836\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_19-02-1-1024x94.png\" alt=\"ssl\" class=\"wp-image-12836\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Then press Ctrl+X to save the script and exit the nano editor.<\/p>\n\n\n\n<p>Next, you need to make the script executable using the following command <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chmod +x \/opt\/certs\/letsencrypt\/scripts\/renew-certificate.sh<\/pre>\n\n\n\n<p>Next, execute the following command to open the crontab editor <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo crontab -e<\/pre>\n\n\n\n<p>Finally, add the below line lines to the crontab file and then press Ctrl + X to save it and exit the nano editor<\/p>\n\n\n\n<p><strong>0 0 * * * bash  \/opt\/certs\/letsencrypt\/scripts\/renew-certificate.sh 2> \/dev\/null<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-11 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"78\" data-id=\"16131\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/07\/image-7-1024x78.png\" alt=\"ssl\" class=\"wp-image-16131\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><strong> [0 0 * * *]<\/strong> is equivalent to the script running automatically every day and renewing the certificate 10 days ago from the expiration date <\/p>\n\n\n\n<p>This is the whole process to generate your SSL certificate as well as renew your SSL certificate <\/p>\n\n\n\n<p><strong>You may also visit our Magento development services and quality\u00a0<\/strong> <strong><a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Magento 2 Extensions<\/a><\/strong>.<\/p>\n\n\n\n<p><strong>For further help or queries, please\u00a0<a href=\"https:\/\/cloudkul.com\/contact\/\">contact<\/a>\u00a0us or raise a\u00a0<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">ticket<\/a>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my last blog, we learned how to general SSL certificates, here we will learn <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,87,341,340],"tags":[798,267,799,796,67,797],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Generate and auto-renew your SSL certificates - Cloudkul<\/title>\n<meta name=\"description\" content=\"Let&#039;s Encrypt is a global Certificate Authority that lets people and organizations around the world obtain, renew and manage SSL\/TLS certificates.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate and auto-renew your SSL certificates - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s Encrypt is a global Certificate Authority that lets people and organizations around the world obtain, renew and manage SSL\/TLS certificates.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-06T07:04:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-20T12:18:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_15-07-1024x408.png\" \/>\n<meta name=\"author\" content=\"Mohit Tiwari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/\",\"name\":\"Generate and auto-renew your SSL certificates - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2023-01-06T07:04:10+00:00\",\"dateModified\":\"2024-12-20T12:18:24+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7\"},\"description\":\"Let's Encrypt is a global Certificate Authority that lets people and organizations around the world obtain, renew and manage SSL\/TLS certificates.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate and auto-renew your SSL certificates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7\",\"name\":\"Mohit Tiwari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Mohit Tiwari\"},\"url\":\"https:\/\/cloudkul.com\/blog\/author\/mohitkrtiwari-cloud767\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate and auto-renew your SSL certificates - Cloudkul","description":"Let's Encrypt is a global Certificate Authority that lets people and organizations around the world obtain, renew and manage SSL\/TLS certificates.","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:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/","og_locale":"en_US","og_type":"article","og_title":"Generate and auto-renew your SSL certificates - Cloudkul","og_description":"Let's Encrypt is a global Certificate Authority that lets people and organizations around the world obtain, renew and manage SSL\/TLS certificates.","og_url":"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/","og_site_name":"Cloudkul","article_published_time":"2023-01-06T07:04:10+00:00","article_modified_time":"2024-12-20T12:18:24+00:00","og_image":[{"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2023\/01\/2023-01-02_15-07-1024x408.png"}],"author":"Mohit Tiwari","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/","url":"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/","name":"Generate and auto-renew your SSL certificates - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2023-01-06T07:04:10+00:00","dateModified":"2024-12-20T12:18:24+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7"},"description":"Let's Encrypt is a global Certificate Authority that lets people and organizations around the world obtain, renew and manage SSL\/TLS certificates.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/automcatic-renew-and-generate-ssl-on-your-website-using-lego-client\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Generate and auto-renew your SSL certificates"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/d65bf252186a357da67ead26747e47b7","name":"Mohit Tiwari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d958ee0f8ad4fe891d737cc821536709?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Mohit Tiwari"},"url":"https:\/\/cloudkul.com\/blog\/author\/mohitkrtiwari-cloud767\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/12849"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=12849"}],"version-history":[{"count":76,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/12849\/revisions"}],"predecessor-version":[{"id":19169,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/12849\/revisions\/19169"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=12849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=12849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=12849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}