{"id":3394,"date":"2019-04-18T15:20:42","date_gmt":"2019-04-18T15:20:42","guid":{"rendered":"https:\/\/puvox.software\/blog\/?p=3394"},"modified":"2021-11-14T13:45:48","modified_gmt":"2021-11-14T13:45:48","slug":"hostinger-https-ssl-auto-install","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/hostinger-https-ssl-auto-install\/","title":{"rendered":"Hostinger FREE SLL Auto-Install"},"content":{"rendered":"<div class=\"default-content-clss content_3394 type_post \"><p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-medium wp-image-3396 aligncenter\" src=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/04\/hostinger-ssl-install-automatically-300x177.png\" alt=\"\" width=\"300\" height=\"177\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/04\/hostinger-ssl-install-automatically-300x177.png 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2019\/04\/hostinger-ssl-install-automatically.png 311w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h1 style=\"text-align: center;\">Install Free SSL on Hostinger automatically<\/h1>\n<p>Whoever has\u00a0<strong>Shared Hosting<\/strong>\u00a0at <a href=\"https:\/\/hostinger.com\" target=\"_blank\" rel=\"noopener noreferrer\">Hostinger<\/a>, s\/he may install free SSL (either from Let&#8217;s encrypt, comodo trial or whatever) for their domains. To use online version for Let&#8217;s encrypt, then you can use:<\/p>\n<p>A) <a href=\"http:\/\/51.158.185.19\/tools\/hostinger-ssl-generator.php\">Online version<\/a> here<\/p>\n<p>or<\/p>\n<p>B) Use onsite installation:\u00a0A while ago, we have created auto-installer of <strong>Let&#8217;s Encrypt<\/strong>&#8216;s free SSL certificate, which will send you the email, containing the generated keys.<\/p>\n<ol>\n<li>download it from <a href=\"https:\/\/github.com\/Puvox\/free-SSL-generator-hostinger\">GitHub<\/a> , upload the <strong><code>auto_ssl<\/code> <\/strong>folder into <strong>public_html <em><span style=\"font-family: 'courier new', courier, monospace;\">(in <code>cron.php<\/code> just change the first line to your email.)<\/span><\/em><\/strong><\/li>\n<li>setup <strong>cron<\/strong> to run <strong>once in every day<\/strong>,<strong> but at randomly chosen hour and minute<\/strong> (i.e. example for 22:45: <code>45 22 * * *<\/code>)<strong>:<\/strong>\n<pre><code>wget -O \/dev\/null -o \/dev\/null \"http:\/\/<span style=\"color: #ff0000;\">yoursite.com<\/span>\/auto_ssl\/cron.php\"<\/code><\/pre>\n<p><em>(Even though it will check every day, will be only executed once in every <strong>89<\/strong> days)<\/em><\/li>\n<li>Now, as a one-time action, open that url ( <code>http:\/\/<span style=\"color: #ff0000;\">yoursite.com<\/span>\/auto_ssl\/cron.php<\/code> ) manually in Browser . Whenever cron executes, you will get mail, it will arrive in your <strong>SPAMBOX <\/strong>(Check there and unmark as spam) and you will see the SSL keys.<\/li>\n<li><span style=\"font-size: inherit;\">Activate SSL KEYS it under your Hostinger account panel, under <\/span><strong style=\"font-size: inherit;\">Advanced &gt; SSL. <\/strong><span style=\"font-size: inherit;\">(copy them including the hyphens <code>---<\/code> and put them in &#8220;Certificate&#8221; and &#8220;Private key&#8221; fields).<\/span><\/li>\n<\/ol>\n<p>From now, leave the site and it will automatically execute every 2 months.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_3394 type_post \"><p>Install Free SSL on Hostinger automatically Whoever has\u00a0Shared Hosting\u00a0at Hostinger, s\/he may install free SSL (either from Let&#8217;s encrypt, comodo trial or whatever) for their domains. To use online version<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/hostinger-https-ssl-auto-install\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":3396,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10,13],"tags":[],"class_list":["post-3394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-browser","category-website"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/3394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=3394"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/3394\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/3396"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=3394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=3394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=3394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}