{"id":2098,"date":"2018-11-14T00:01:24","date_gmt":"2018-11-14T07:01:24","guid":{"rendered":"https:\/\/bt.beerprojects.com\/wordpress\/?p=2098"},"modified":"2018-11-14T00:01:24","modified_gmt":"2018-11-14T07:01:24","slug":"real-ssl-certs","status":"publish","type":"post","link":"https:\/\/bt.beerprojects.com\/wordpress\/?p=2098","title":{"rendered":"Real SSL Certs"},"content":{"rendered":"<p>For a while I was making my own certs, just to see that I could and to understand how to setup and force https.&nbsp; However, since my certs were not signed every browsers said my site wasn&#8217;t secure (rightly so).&nbsp; So after a few times of my certs expiring I turned off forcing https and all redirects related to it.<\/p>\n<p>With Chrome now making https more mandatory I looked into getting real SSL certs.&nbsp; I found <a href=\"https:\/\/zerossl.com\" target=\"_blank\" rel=\"noopener\">ZeroSSL.com<\/a> could do the trick.&nbsp; I followed the new user directions and have a few trips I was able to get real certs.&nbsp; However, I read that these certs expire every 90 days.&nbsp; Now I&#8217;m not the best at remembering to do updates like this so I set out to figure out how to refresh my certs automatically.&nbsp;&nbsp;<\/p>\n<p>Perhaps I&#8217;ll get into the details later, but my final messy solution is a php script that will create an html output will run the refresh command.&nbsp; It translates the refresh command output to a less descriptive output (i.e. it hides all the folder paths and files used).&nbsp; If the refresh command generates keys the command is setup to place the keys in my webservers SSL folder. From there I use a windows batch file to call the php file and to log the output to a html file.&nbsp; The batch file also transfers the lastest html log file to a known folder that I can see from my website (the reason I don&#8217;t capture the full refresh command output into the html log file).&nbsp; Finally, I have Windows Scheduled task setup to run the batch file every night.<\/p>\n<p>&nbsp;<\/p>\n<p>And with that I should have SSL certs always up to date&#8230;.at least that&#8217;s the theory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a while I was making my own certs, just to see that I could and to understand how to setup and force https.&nbsp; However, since my certs were not signed every browsers said my site wasn&#8217;t secure (rightly so).&nbsp; So after a few times of my certs expiring I turned off forcing https and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[466,465,467],"class_list":["post-2098","post","type-post","status-publish","format-standard","hentry","category-tech-talk","tag-certs","tag-ssl","tag-zerossl"],"_links":{"self":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2098"}],"version-history":[{"count":1,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2098\/revisions"}],"predecessor-version":[{"id":2099,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2098\/revisions\/2099"}],"wp:attachment":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}