{"id":2731,"date":"2018-08-23T17:35:45","date_gmt":"2018-08-23T17:35:45","guid":{"rendered":"https:\/\/govinddas.com\/?p=2731"},"modified":"2018-08-23T17:43:45","modified_gmt":"2018-08-23T17:43:45","slug":"list-commands-installing-ssl-certificate-google-cloud-platform-hosted-wordpress-website","status":"publish","type":"post","link":"https:\/\/govinddas.com\/index.php\/list-commands-installing-ssl-certificate-google-cloud-platform-hosted-wordpress-website\/","title":{"rendered":"List of Commands for installing SSL certificate over google cloud platform hosted wordpress website"},"content":{"rendered":"<p>I followed tutorial over onepagezen.com, a popular and thoroughly written blogs collection for aws and gcp cloud providers, specifically wordpress part. I am becoming a huge fan of jow, as he is indicating clear cut instructions via youtube and blog both. This post is my personal note for installing SSL certificate over another pending domains of mine, that&#8217;s mediwiki.co.in and medi-wiki.com. I will also update post if I find time to explain them, else you directly find relevant page over onepagezen.com, and get things done.<\/p>\n<p>Also, I would add to use notepad++ to store commands, as it requires find and replace function to change your domains instead of this template.<\/p>\n<p>To understand these notes, you have to thoroughly watch tutorials and also practice them like me. It took around 1 hour or so to get through successful installation. Watch result on my very own website now, served over https. Thanks joe !<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #800080;\">wget https:\/\/dl.eff.org\/certbot-auto &amp;&amp; chmod a+x certbot-auto<\/span><\/p>\n<p><span style=\"color: #800080;\">.\/certbot-auto certonly &#8211;webroot -w \/var\/www\/html\/ -d mediwiki.co.in -d www.mediwiki.co.in<\/span><\/p>\n<p><span style=\"color: #800080;\">Congratulations! Your certificate and chain have been saved at:<\/span><br \/>\n<span style=\"color: #800080;\">\/etc\/letsencrypt\/live\/mediwiki.co.in\/fullchain.pem<\/span><br \/>\n<span style=\"color: #800080;\">Your key file has been saved at:<\/span><br \/>\n<span style=\"color: #800080;\">\/etc\/letsencrypt\/live\/mediwiki.co.in\/privkey.pem<\/span><\/p>\n<p><span style=\"color: #800080;\">.\/certbot-auto renew &#8211;dry-run<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo crontab -e<\/span><br \/>\n<span style=\"color: #800080;\">1<\/span><\/p>\n<p><span style=\"color: #800080;\">0 0 * * * .\/certbot-auto renew &#8211;quiet &#8211;no-self-upgrade <\/span><br \/>\n<span style=\"color: #800080;\">0 12 * * * .\/certbot-auto renew &#8211;quiet &#8211;no-self-upgrade<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo nano \/etc\/apache2\/sites-available\/default-ssl.conf<\/span><\/p>\n<p><span style=\"color: #800080;\">&lt;Directory \/var\/www\/html\/&gt;<\/span><br \/>\n<span style=\"color: #800080;\">Options Indexes FollowSymLinks MultiViews<\/span><br \/>\n<span style=\"color: #800080;\">AllowOverride All<\/span><br \/>\n<span style=\"color: #800080;\">Order allow,deny<\/span><br \/>\n<span style=\"color: #800080;\">allow from all<\/span><br \/>\n<span style=\"color: #800080;\">&lt;\/Directory&gt;<\/span><\/p>\n<p><span style=\"color: #800080;\">#s&#8211;<\/span><br \/>\n<span style=\"color: #800080;\">#s&#8211;<\/span><\/p>\n<p><span style=\"color: #800080;\">SSLCertificateFile &#8220;\/etc\/letsencrypt\/live\/mediwiki.co.in\/cert.pem&#8221;<\/span><br \/>\n<span style=\"color: #800080;\">SSLCertificateKeyFile &#8220;\/etc\/letsencrypt\/live\/mediwiki.co.in\/privkey.pem&#8221;<\/span><br \/>\n<span style=\"color: #800080;\">SSLCertificateChainFile &#8220;\/etc\/letsencrypt\/live\/mediwiki.co.in\/chain.pem&#8221;<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo nano \/etc\/apache2\/sites-available\/wordpress.conf<\/span><\/p>\n<p><span style=\"color: #800080;\">ServerName www.mediwiki.co.in<\/span><br \/>\n<span style=\"color: #800080;\">ServerAlias mediwiki.co.in<\/span><br \/>\n<span style=\"color: #800080;\">Redirect permanent \/ https:\/\/www.mediwiki.co.in\/<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo a2ensite default-ssl<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo a2enmod ssl<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo service apache2 restart<\/span><\/p>\n<p><span style=\"color: #800080;\">RENEWAL- ANOTHER TUTORIAL<\/span><\/p>\n<p><span style=\"color: #800080;\">wget https:\/\/dl.eff.org\/certbot-auto &amp;&amp; chmod a+x certbot-auto<\/span><br \/>\n<span style=\"color: #800080;\">ls<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo mv certbot-auto \/etc\/letsencrypt\/<\/span><\/p>\n<p><span style=\"color: #800080;\">ls \/etc\/letsencrypt\/<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo crontab -e<\/span><br \/>\n<span style=\"color: #800080;\">45 2 * * 6 cd \/etc\/letsencrypt\/ &amp;&amp; .\/certbot-auto renew &amp;&amp; \/etc\/init.d\/apache2 restart<\/span><\/p>\n<p><span style=\"color: #800080;\">sudo -i <\/span><br \/>\n<span style=\"color: #800080;\">cd \/etc\/letsencrypt\/ &amp;&amp; .\/certbot-auto renew &#8211;dry-run &amp;&amp; \/etc\/init.d\/apache2 restart<\/span><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2731\" class=\"pvc_stats all  \" data-element-id=\"2731\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I followed tutorial over onepagezen.com, a popular and thoroughly written blogs collection for aws and gcp cloud providers, specifically wordpress part. I am becoming a huge fan of jow, as he is indicating clear cut instructions via youtube and blog both. This post is my personal note for installing SSL certificate over another pending domains of mine, that&#8217;s mediwiki.co.in and medi-wiki.com. I will also update post if I find time to explain them, else you directly find relevant page over&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/govinddas.com\/index.php\/list-commands-installing-ssl-certificate-google-cloud-platform-hosted-wordpress-website\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2731\" class=\"pvc_stats all  \" data-element-id=\"2731\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[],"class_list":["post-2731","post","type-post","status-publish","format-aside","hentry","category-general-discussion","post_format-post-format-aside"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/2731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/comments?post=2731"}],"version-history":[{"count":0,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/2731\/revisions"}],"wp:attachment":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/media?parent=2731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/categories?post=2731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/tags?post=2731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}