That’s what I do: # Within each site config server block: include snippets/letsencrypt.conf; # letsencrypt.conf: location ~ .well-known/acme-challenge/ { root /var/www/letsencrypt; default_type text/plain; }
-
-
Replying to @C0deH4cker
Yes, this is the plan. But the previous config required zero additional config stanzas (other than the cert itself).
1 reply 0 retweets 0 likes -
Replying to @marcan42
I guess I just don’t see it as a hindrance as you do. I’ve been using letsencrypt this way all along, for every site and nginx server I host
1 reply 0 retweets 0 likes -
Replying to @C0deH4cker
It's not a huge deal but it's not as nice and magical as TLS-SNI-01 which Just Worked.
1 reply 0 retweets 0 likes -
Replying to @marcan42 @C0deH4cker
Ended up requiring some more effort to handle top-level redirects, allow/deny and similar. rewrite ^(/.well-known/acme-challenge/.*) $1 break; location ^~ /.well-known/acme-challenge/ { root /var/www/acme; allow all; default_type text/plain; break; }
1 reply 0 retweets 1 like -
Replying to @marcan42 @C0deH4cker
certbot configs: for i in *; do echo
$i; sed -i s/certbot-external:external/webroot/g$i; (echo webroot_path = /var/www/acme; echo '[[webroot_map]]'; openssl x509 -in ../live/${i%%.conf}/cert.pem -text|tr , '\n'|grep DNS|sed -re 's, *DNS:(.*),\1 = /var/www/acme,') >>$i ; done1 reply 0 retweets 1 like -
-
-
Replying to @marcan42 @C0deH4cker
You'll want to replace certbot-external:external with whatever plugin was previously used instead of webroot (that one is my now obsolete custom one).
1 reply 0 retweets 0 likes -
Replying to @marcan42
Ah I see. I’ve always just used the webroot plugin, so I don’t need to do any of that :P
1 reply 0 retweets 0 likes
The point here was switching to HTTP-01/webroot from a TLS-SNI-01 based system.
-
-
Replying to @marcan42
I thought you were suggesting for me to run those commands. Understood now
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.