{"id":381,"date":"2017-06-10T00:44:45","date_gmt":"2017-06-09T22:44:45","guid":{"rendered":"http:\/\/my-opinions.uw-t.com\/?p=381"},"modified":"2017-06-10T00:47:32","modified_gmt":"2017-06-09T22:47:32","slug":"ssl-https-free-auto-crbot","status":"publish","type":"post","link":"https:\/\/uw-t.com\/ru\/spiritual-experiences\/ssl-https-free-auto-crbot","title":{"rendered":"SSL https free auto crbot"},"content":{"rendered":"<p>1. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u0430\u043c CERBOT: <\/p>\n<p>\u041a\u043e\u0434:<br \/>\nwget https:\/\/dl.eff.org\/certbot-auto<\/p>\n<p>2. \u0423\u0441\u0442\u0430\u043d\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 CERBOT: <\/p>\n<p>\u041a\u043e\u0434:<br \/>\nchmod a+x certbot-auto<\/p>\n<p>3. \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \"webroot-path\" \u043f\u0430\u043f\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0438\u0437 \u0432\u043d\u0435<\/p>\n<p>\/etc\/letsencrypt<br \/>\nauthenticator = webroot<br \/>\nwebroot-path = \/var\/www\/grenuydev\/data\/www\/dev.uw-t.com<br \/>\npost-hook = service nginx reload<br \/>\ntext = True<\/p>\n<p>.\/certbot-auto certonly --webroot<\/p>\n<p>test auto renew<br \/>\n<code>certbot-auto renew --dry-run<\/code><\/p>\n<p>renew auto<br \/>\n<code>certbot-auto renew --no-self-upgrade<\/code><\/p>\n<p>ngnix config:<br \/>\nadd file <\/p>\n<p><code><br \/>\n# cat \/etc\/nginx\/acme<br \/>\nlocation ^~ \/.well-known\/ {<br \/>\n\tproxy_pass http:\/\/91.203.5.41:81;<br \/>\n\tproxy_redirect http:\/\/91.203.5.41:81\/ \/;<br \/>\n\troot \/var\/www\/grenuydev\/data\/www\/dev.uw-t.com;<br \/>\n}<br \/>\n<\/code><\/p>\n<p><code><br \/>\ninclude acme;<br \/>\ninclude \/usr\/local\/ispmgr\/etc\/nginx.inc;<br \/>\nlisten 91.203.5.41:443 ssl;<br \/>\nssl_certificate \/etc\/letsencrypt\/live\/example.dev.uw-t.com\/fullchain.pem;<br \/>\nssl_certificate_key \/etc\/letsencrypt\/live\/example.dev.uw-t.com\/privkey.pem;<br \/>\nssl_protocols TLSv1 TLSv1.1 TLSv1.2 SSLv2 SSLv3;<br \/>\n<\/code><\/p>\n<p>\u041c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438<\/p>\n<p>openssl rsa -outform der -in private.pem -out private.key<br \/>\nopenssl x509 -outform der -in your-cert.pem -out your-cert.crt<\/p>","protected":false},"excerpt":{"rendered":"<p>1. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u0430\u043c CERBOT: \u041a\u043e\u0434: wget https:\/\/dl.eff.org\/certbot-auto 2. \u0423\u0441\u0442\u0430\u043d\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 CERBOT: \u041a\u043e\u0434: chmod a+x certbot-auto 3. \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \"webroot-path\" \u043f\u0430\u043f\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0438\u0437 \u0432\u043d\u0435 \/etc\/letsencrypt authenticator = webroot webroot-path = \/var\/www\/grenuydev\/data\/www\/dev.uw-t.com post-hook = service nginx reload text = True .\/certbot-auto certonly --webroot test auto renew certbot-auto renew --dry-run renew auto certbot-auto renew --no-self-upgrade ngnix config: add &hellip; <a href=\"https:\/\/uw-t.com\/ru\/spiritual-experiences\/ssl-https-free-auto-crbot\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"screen-reader-text\">SSL https free auto crbot<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-spiritual-experiences"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":2,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":383,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/381\/revisions\/383"}],"wp:attachment":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}