{"id":61,"date":"2016-03-14T23:03:49","date_gmt":"2016-03-14T22:03:49","guid":{"rendered":"https:\/\/solidt.eu\/blog\/?p=61"},"modified":"2020-05-14T19:04:58","modified_gmt":"2020-05-14T18:04:58","slug":"first-post","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/first-post\/","title":{"rendered":"Free SSL certificates"},"content":{"rendered":"<p>I am proud to let you read this first post. I just wanted to tell you that I managed to get an SSL certificate for this website for <strong>free <\/strong>(and it is even accepted as valid!). Get one for your site too! Read the instructions on <a href=\"https:\/\/letsencrypt.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Lets Encrypt<\/a><\/p>\n<p>The command I used (replaced the domain name)<\/p>\n<pre class=\"\" lang=\"bash\">letsencrypt certonly --standalone -d example.com -d www.example.com --rsa-key-size 4096\n<\/pre>\n<p>See the website for the other options. Renew the certificate every 3 months.<\/p>\n<p><strong>Update: (new commands)<\/strong><\/p>\n<pre class=\"lang:sh decode:true\"># install nginx plugin\nsudo pacman -S certbot-nginx\n\n# to generate a certificate for a new domain\nsudo certbot --nginx certonly -d api.solidt.eu\n\n# to renew a certificate\nsudo certbot --nginx renew<\/pre>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl stop nginx\nsudo certbot certonly -d $cert\n\n\/\/ include in nginx config:\n\/\/ ssl_certificate \/etc\/letsencrypt\/live\/$cert\/fullchain.pem;\n\/\/ ssl_certificate_key \/etc\/letsencrypt\/live\/$cert\/privkey.pem;\n\nsudo nginx -t \/\/ test nginx config for syntax errors\nsudo systemctl start nginx<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am proud to let you read this first post. I just wanted to tell you that I managed to get an SSL certificate for this website for free (and it is even accepted as valid!). Get one for your site too! Read the instructions on Lets Encrypt The command I used (replaced the domain [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-websites"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":7,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":3763,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/61\/revisions\/3763"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}