{"id":853,"date":"2021-12-12T16:20:26","date_gmt":"2021-12-12T10:20:26","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=853"},"modified":"2021-12-12T16:20:53","modified_gmt":"2021-12-12T10:20:53","slug":"how-to-manually-renew-ssl-in-cyberpanel","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-manually-renew-ssl-in-cyberpanel.html","title":{"rendered":"How To Manually Renew SSL in Cyberpanel"},"content":{"rendered":"\n<p>In case you are failing to renew your domain SSL using let&#8217;s encrypt in a cyberpanel environment. This might help you. <\/p>\n\n\n\n<p>First, make sure, you have the certbot installed. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install epel-release -y\nyum install certbot -y<\/pre>\n\n\n\n<p>Once done, now, you can get a certificate using the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">certbot certonly  --webroot -w \/home\/yourdomain.com\/public_html\/yourdomain.com\/ -d yourdomain.com -d www.yourdomain.com<\/pre>\n\n\n\n<p>Make sure to replace &#8216;\/home\/yourdomain.com\/public_html\/yourdomain.com\/&#8217; with the path of your home directory and &#8216;yourdomain.com&#8217; with the original domain. This will show something like the following once the retrieve is done<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">IMPORTANT NOTES:\n - Congratulations! Your certificate and chain have been saved at:\n   \/etc\/letsencrypt\/live\/yourdomain.com-0003\/fullchain.pem\n   Your key file has been saved at:\n   \/etc\/letsencrypt\/live\/yourdomain.com-0003\/privkey.pem\n   Your cert will expire on 2022-03-12. To obtain a new or tweaked\n   version of this certificate in the future, simply run certbot\n   again. To non-interactively renew *all* of your certificates, run\n   \"certbot renew\"\n<\/pre>\n\n\n\n<p>The noticeable thing is the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/etc\/letsencrypt\/live\/yourdomain.com-0003\/<\/pre>\n\n\n\n<p>This ends with 003 because this is the 3rd time, it is getting a certificate from Let&#8217;s Encrypt for the same domain.<\/p>\n\n\n\n<p>Now, first go to \/etc\/letsencrypt\/live and change this folder to yourdomain.com, and then restart lsws like the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd \/etc\/letsencrypt\/live\nmv yourdomain.com yourdomain.com_old_1\nmv yourdomain.com-003 yourdomain.com\nservice lsws restart<\/pre>\n\n\n\n<p>Your SSL should be up and running now. Good luck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case you are failing to renew your domain SSL using let&#8217;s encrypt in a cyberpanel environment. This might help you. First, make sure, you have the certbot installed. Once done, now, you can get a certificate using the following command: Make sure to replace &#8216;\/home\/yourdomain.com\/public_html\/yourdomain.com\/&#8217; with the path of your home directory and &#8216;yourdomain.com&#8217; &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-manually-renew-ssl-in-cyberpanel.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How To Manually Renew SSL in Cyberpanel&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[406,356],"tags":[407,382,647,357],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/853"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=853"}],"version-history":[{"count":2,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":855,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions\/855"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}