muerwre.github.io/docs/linux/certbot-well-known-auto-renew/_payload.js
2024-03-21 11:24:25 +00:00

1 line
No EOL
13 KiB
JavaScript

export default (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T){return {data:{navigation:[{title:"Blockchain",_path:"\u002Fblockchain",children:[{title:"Common Typescript Examples",_path:"\u002Fblockchain\u002Fcommon-typescript-examples"},{title:"Smart Contracts",_path:"\u002Fblockchain\u002Fsmart-contracts"}]},{title:"Css",_path:"\u002Fcss",children:[{title:"Automatic Grid Like Masonry With Pure CSS",_path:"\u002Fcss\u002Fautomatic-grid-like-masonry-with-pure-css"},{title:"Sass Nth Child Iterate Mixin",_path:"\u002Fcss\u002Fsass-nth-child-iterate-mixin"},{title:"Test If Browser Supports CSS Rules",_path:"\u002Fcss\u002Ftest-if-browser-supports-css-rules"}]},{title:"Docker",_path:"\u002Fdocker",children:[{title:"Building Static Pages With Docker",_path:"\u002Fdocker\u002Fbuilding-static-pages-with-docker"},{title:"Common Things With Docker Mailserver",_path:"\u002Fdocker\u002Fcommon-things-with-docker-mailserver"},{title:"Drone Ci",_path:"\u002Fdocker\u002Fdrone-ci"},{title:"Github Pages With Drone Ci",_path:"\u002Fdocker\u002Fgithub-pages-with-drone-ci"},{title:"Private Docker Registry",_path:"\u002Fdocker\u002Fprivate-docker-registry"},{title:"Refresh Containers On Pull",_path:"\u002Fdocker\u002Frefresh-containers-on-pull"},{title:"Seed Dump Inside Docker",_path:"\u002Fdocker\u002Fseed-dump-inside-docker"},{title:"Wait For Mysql",_path:"\u002Fdocker\u002Fwait-for-mysql"},{title:"Wait For Redis",_path:"\u002Fdocker\u002Fwait-for-redis"}]},{title:"Frontend",_path:"\u002Ffrontend",children:[{title:"React Native",_path:"\u002Ffrontend\u002Freact-native",children:[{title:"OAuth2 Login",_path:"\u002Ffrontend\u002Freact-native\u002Foauth2-login"},{title:"Preserve FlatList Scroll Position In React Native",_path:"\u002Ffrontend\u002Freact-native\u002Fpreserve-flatlist-scroll-position-in-react-native"},{title:"Useful Comands",_path:"\u002Ffrontend\u002Freact-native\u002Fuseful-comands"}]},{title:"React",_path:"\u002Ffrontend\u002Freact",children:[{title:"Axios Refresh Token On React",_path:"\u002Ffrontend\u002Freact\u002Faxios-refresh-token-on-react"},{title:"Axios With AbortController",_path:"\u002Ffrontend\u002Freact\u002Faxios-with-abortcontroller"},{title:"Detect Hook Deps Changes With UseWhatsChanged",_path:"\u002Ffrontend\u002Freact\u002Fdetect-hook-deps-changes-with-usewhatschanged"}]},{title:"Vue",_path:"\u002Ffrontend\u002Fvue",children:[{title:"Adding Global Properties To Component",_path:"\u002Ffrontend\u002Fvue\u002Fadding-global-properties-to-component"},{title:"Make Nuxt Handle Obsidian Highlights",_path:"\u002Ffrontend\u002Fvue\u002Fmake-nuxt-handle-obsidian-highlights"}]},{title:"Webgl",_path:"\u002Ffrontend\u002Fwebgl",children:[{title:"Basics Of WebGL (Drawing A Cube)",_path:"\u002Ffrontend\u002Fwebgl\u002Fbasics-of-webgl-(drawing-a-cube)"},{title:"Fragment Shaders",_path:"\u002Ffrontend\u002Fwebgl\u002Ffragment-shaders"},{title:"Rendering Without Blocking In A Worker",_path:"\u002Ffrontend\u002Fwebgl\u002Frendering-without-blocking-in-a-worker"},{title:"Vertex Shaders",_path:"\u002Ffrontend\u002Fwebgl\u002Fvertex-shaders"}]}]},{title:"Git",_path:"\u002Fgit",children:[{title:"Force Git To Use HTTPS",_path:"\u002Fgit\u002Fforce-git-to-use-https"},{title:"Git Aliases And Useful Commands",_path:"\u002Fgit\u002Fgit-aliases-and-useful-commands"}]},{title:"Golang",_path:"\u002Fgolang",children:[{title:"I18n In Golang",_path:"\u002Fgolang\u002Fi18n-in-golang"}]},{title:"Graphql",_path:"\u002Fgraphql",children:[{title:"Apollo Client Pagination",_path:"\u002Fgraphql\u002Fapollo-client-pagination"},{title:"Refresh Token In Apollo Client",_path:"\u002Fgraphql\u002Frefresh-token-in-apollo-client"}]},{title:"Linux",_path:"\u002Flinux",children:[{title:v,_path:w},{title:"Find Out Who Uses Swap",_path:"\u002Flinux\u002Ffind-out-who-uses-swap"},{title:"Fixing Lagging USB Headphones",_path:"\u002Flinux\u002Ffixing-lagging-usb-headphones"},{title:"Gitea For Git Hosting",_path:"\u002Flinux\u002Fgitea-for-git-hosting"},{title:"Google Photos Alternative With Photoprism",_path:"\u002Flinux\u002Fgoogle-photos-alternative-with-photoprism"},{title:"Linux On Asus Zenbook UM3402 YA",_path:"\u002Flinux\u002Flinux-on-asus-zenbook-um3402-ya"},{title:"Resume Or Start Screen Session",_path:"\u002Flinux\u002Fresume-or-start-screen-session"},{title:"Rsync File With SSH",_path:"\u002Flinux\u002Frsync-file-with-ssh"},{title:"Setting Up NGINX",_path:"\u002Flinux\u002Fsetting-up-nginx"},{title:"SSH",_path:"\u002Flinux\u002Fssh"}]},{title:"Obsidian",_path:"\u002Fobsidian",children:[{title:"Self Hosted Obsidian Sync With CouchDB",_path:"\u002Fobsidian\u002Fself-hosted-obsidian-sync-with-couchdb"}]},{title:"Sql",_path:"\u002Fsql",children:[{title:"MySQL And MariaDB Setup",_path:"\u002Fsql\u002Fmysql-and-mariadb-setup"},{title:"Postgress Setup",_path:"\u002Fsql\u002Fpostgress-setup"}]},{title:"Typescript",_path:"\u002Ftypescript",children:[{title:"Add Global Variable To Window",_path:"\u002Ftypescript\u002Fadd-global-variable-to-window"},{title:"Flatten Object With Periods",_path:"\u002Ftypescript\u002Fflatten-object-with-periods"},{title:"Type Guards",_path:"\u002Ftypescript\u002Ftype-guards"}]}],"content-query-h5bgYxRbdF":{_path:w,_dir:"linux",_draft:n,_partial:n,_locale:"en",_empty:n,title:v,description:"This is translation of article from clsv.ru, which explains how to automate certbot's well-known, also known as HTTP challenge for wildcard certs renewal.",excerpt:{type:x,children:[{type:a,tag:l,props:{},children:[{type:b,value:y},{type:a,tag:z,props:{href:A,rel:[B]},children:[{type:b,value:C}]},{type:b,value:D}]},{type:a,tag:l,props:{},children:[{type:b,value:E}]},{type:a,tag:h,props:{},children:[{type:a,tag:i,props:{},children:[{type:b,value:F}]}]},{type:a,tag:d,props:{code:o,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:b,value:o}]}]}]},{type:a,tag:h,props:{start:m},children:[{type:a,tag:i,props:{},children:[{type:b,value:G}]}]},{type:a,tag:d,props:{code:p,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:b,value:p}]}]}]},{type:a,tag:h,props:{start:H},children:[{type:a,tag:i,props:{},children:[{type:b,value:I}]}]},{type:a,tag:d,props:{code:q,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:b,value:q}]}]}]},{type:a,tag:h,props:{start:J},children:[{type:a,tag:i,props:{},children:[{type:b,value:K}]}]},{type:a,tag:d,props:{code:r,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:b,value:r}]}]}]},{type:a,tag:l,props:{},children:[{type:b,value:L},{type:a,tag:M,props:{},children:[{type:b,value:N}]},{type:b,value:O}]}]},body:{type:x,children:[{type:a,tag:l,props:{},children:[{type:b,value:y},{type:a,tag:z,props:{href:A,rel:[B]},children:[{type:b,value:C}]},{type:b,value:D}]},{type:a,tag:l,props:{},children:[{type:b,value:E}]},{type:a,tag:h,props:{},children:[{type:a,tag:i,props:{},children:[{type:b,value:F}]}]},{type:a,tag:d,props:{code:o,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:P},children:[{type:b,value:Q}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:"ct-5e1d2f"},children:[{type:b,value:"echo"}]},{type:a,tag:c,props:{class:f},children:[{type:b,value:R}]},{type:a,tag:c,props:{class:s},children:[{type:b,value:t}]},{type:a,tag:c,props:{class:u},children:[{type:b,value:"CERTBOT_VALIDATION"}]},{type:a,tag:c,props:{class:f},children:[{type:b,value:R}]},{type:a,tag:c,props:{class:"ct-d4cb39"},children:[{type:b,value:"\u003E"}]},{type:a,tag:c,props:{class:f},children:[{type:b,value:" \u002Fvar\u002Fwww\u002Fhtml\u002F.well-known\u002F"}]},{type:a,tag:c,props:{class:s},children:[{type:b,value:t}]},{type:a,tag:c,props:{class:u},children:[{type:b,value:S}]}]}]}]}]},{type:a,tag:h,props:{start:m},children:[{type:a,tag:i,props:{},children:[{type:b,value:G}]}]},{type:a,tag:d,props:{code:p,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:P},children:[{type:b,value:Q}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:"rm -f \u002Fvar\u002Fwww\u002Fhtml\u002F.well-known\u002F"}]},{type:a,tag:c,props:{class:s},children:[{type:b,value:t}]},{type:a,tag:c,props:{class:u},children:[{type:b,value:S}]}]}]}]}]},{type:a,tag:h,props:{start:H},children:[{type:a,tag:i,props:{},children:[{type:b,value:I}]}]},{type:a,tag:d,props:{code:q,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:"certbot certonly \\"}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:" --preferred-challenges=http --manual \\"}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:T}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:" --manual-cleanup-hook \u002Foath\u002Fto\u002Fclean.sh"}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:" -d "}]},{type:a,tag:c,props:{class:"ct-8f08f4"},children:[{type:b,value:"\"yourhost.org,*.yourhost.org\""}]},{type:a,tag:c,props:{class:f},children:[{type:b,value:" \\"}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:" --manual-public-ip-logging-ok"}]}]}]}]}]},{type:a,tag:h,props:{start:J},children:[{type:a,tag:i,props:{},children:[{type:b,value:K}]}]},{type:a,tag:d,props:{code:r,language:j},children:[{type:a,tag:k,props:{},children:[{type:a,tag:d,props:{__ignoreMap:g},children:[{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:"certbot renew --manual-public-ip-logging-ok \\"}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:T}]}]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:" --manual-cleanup-hook \u002Fpath\u002Fto\u002Fclean.sh"}]}]},{type:a,tag:c,props:{class:e},children:[]},{type:a,tag:c,props:{class:e},children:[{type:a,tag:c,props:{class:f},children:[{type:b,value:"systemctl reload nginx"}]}]}]}]}]},{type:a,tag:l,props:{},children:[{type:b,value:L},{type:a,tag:M,props:{},children:[{type:b,value:N}]},{type:b,value:O}]},{type:a,tag:"style",children:[{type:b,value:".ct-8f08f4{color:#A5D6FF}.ct-d4cb39{color:#FF7B72}.ct-61baa0{color:#C9D1D9}.ct-0f1e10{color:#C9D1D9}.ct-722310{color:#C9D1D9}.ct-5e1d2f{color:#79C0FF}.ct-30b3d5{color:#8B949E}.light .ct-30b3d5{color:#93A1A1}.light .ct-5e1d2f{color:#268BD2}.light .ct-722310{color:#657B83}.light .ct-0f1e10{color:#859900}.light .ct-61baa0{color:#268BD2}.light .ct-d4cb39{color:#859900}.light .ct-8f08f4{color:#2AA198}"}]}],toc:{title:g,searchDepth:m,depth:m,links:[]}},_type:"markdown",_id:"content:Linux:Certbot well-known auto renew.md",_source:"content",_file:"Linux\u002FCertbot well-known auto renew.md",_extension:"md"}},prerenderedAt:1711020227763}}("element","text","span","code","line","ct-722310","","ol","li","shell","pre","p",2,false,"#!\u002Fbin\u002Fbash\necho $CERTBOT_VALIDATION \u003E \u002Fvar\u002Fwww\u002Fhtml\u002F.well-known\u002F$CERTBOT_TOKEN\n","#!\u002Fbin\u002Fbash\nrm -f \u002Fvar\u002Fwww\u002Fhtml\u002F.well-known\u002F$CERTBOT_TOKEN\n","certbot certonly \\\n --preferred-challenges=http --manual \\\n --manual-auth-hook \u002Fpath\u002Fto\u002Fauth.sh \\\n --manual-cleanup-hook \u002Foath\u002Fto\u002Fclean.sh\n -d \"yourhost.org,*.yourhost.org\" \\\n --manual-public-ip-logging-ok\n","certbot renew --manual-public-ip-logging-ok \\\n --manual-auth-hook \u002Fpath\u002Fto\u002Fauth.sh \\\n --manual-cleanup-hook \u002Fpath\u002Fto\u002Fclean.sh\n\nsystemctl reload nginx\n","ct-0f1e10","$","ct-61baa0","Certbot Well Known Auto Renew","\u002Flinux\u002Fcertbot-well-known-auto-renew","root","This is translation of article from ","a","https:\u002F\u002Fclsv.ru\u002Flinux\u002Flets_encrypt_eto_legko_i_prosto_60","nofollow","clsv.ru",", which explains how to automate certbot's well-known, also known as HTTP challenge for wildcard certs renewal.","You'll need 4 scripts:","Authentication script, which will write authentication file:","Cleanup script, that will delete that",3,"Initial cert acquiring script:",4,"Renewal script itself, to put it in crontab (or \u002Fetc\u002Fcron.weekly)","Don't forget to configure your http server to serve ","code-inline",".well-known",".","ct-30b3d5","#!\u002Fbin\u002Fbash"," ","CERTBOT_TOKEN"," --manual-auth-hook \u002Fpath\u002Fto\u002Fauth.sh \\"))