Closed thelittlefireman closed 3 years ago
Thanks for your suggestion. Let's add it to the TODO list.
Until it's implemented, you can still generate and renew wildcard certificate outside of bunkerized-nginx and use it as custom certificate. Please note that you need to remove the double quote (") when setting environment variables inside your docker-compose.yml.
Great :) Thanks for the advice
Hi guys,
Just made a quick test with gsan. It is a tool that can extract Subject Alternative Names found in SSL Certificates directly from https web sites which can provide you with DNS names (subdomains) or virtual servers.
Ref. https://franccesco.github.io/getaltname/
gsan crtsh bunkerity.com
[+] Getting subdomains for bunkerity.com
[+] Results:
BUNKERITY.COM
↳ play2.bunkerity.com
↳ play2bis.bunkerity.com
↳ infra.bunkerity.com
↳ bunkerity.com
↳ mail.bunkerity.com
↳ play1.bunkerity.com
↳ pwd.bunkerity.com
↳ demo-nginx.bunkerity.com
↳ demo-mariadb.bunkerity.com
↳ srv1.bunkerity.com
Supporting wildcard could be more secure and preventing sub-domain enumeration. Isnt'it ?
Cheers, Luc Michalski
@lucmichalski I think both point of view could be analyse 😃 In the other hand it could be a risk :
"In the event of a breach of one of the servers, the certificate will be compromised by adversaries. The confidentiality and integrity of traffic to each site where the certificate is used is jeopardized. An attacker who obtains the certificate would be able to decrypt, read or modify, and re-encrypt traffic. This is likely to result in the disclosure of sensitive information and further targeted attacks."
good point ^^
Regarding the SAN enumeration, the new v1.2.1 release now generates one certificate per server when MULTISITE is set to yes. Anyway, keeping this issue open until we have a way to support wildcard certificates.
À huuuge thanks you're so reactive ! Amazing work !
I don't know if it's possible to do it but it would be interesting if webserver/base server on 443 could use a wildcard certificate and other reverse_proxy/site use their own certificate. I don't know if nginx could be configured like this but it would prevent from brutforce on subdomain and guarantee that all subdomain have his own certificate.
Yeah, i just tested your image not out, cause im reverse proxying like 14 services. and only using cloudflare, so i need something like a lets encrypt dns.
Just watched up, youre using letsencrypt as i saw, so with a second dependeciy it should be working with a cloudflare dns-auth key.
But nice work, i following your repo since some time, and wow. Its one of the best Nginx ive probally saw, maybe lttle bit more complicated, but thats it.
Running it with your bunkerized PHP and mariadb, there you go.
I don't know if it's possible to do it but it would be interesting if webserver/base server on 443 could use a wildcard certificate and other reverse_proxy/site use their own certificate. I don't know if nginx could be configured like this but it would prevent from brutforce on subdomain and guarantee that all subdomain have his own certificate.
Ive running a service behind a own reverse proxy, which is howsted offshare and tried to provide a lets encrypt, no chance. I needed to figure it out with cloudflare dns. So then i was cloudflare --> reverse proxy (offshore) --> and then my host server.
Only got it working with Cloudflare Origin Certs (but i dont knew ho far thats gonna leak my ip, or dns.
Sorry for the long text.
Hello,
I've added an example using certbot/certbot image to get wildcard certificates from Let's Encrypt : here is the link. The only drawback is it's interactive and can't be auto-renewed. I will try to add an auto-renew example (e.g. : certbot/certbot-cloudflare) when I have time.
Hi, I was wondering what config would i need to add for the wildcard on my docker compose? I was checking the doc page but didnt seem to find it
Thank you
hi,
is there a way for using or register a wildcard domain name in bunkerized-nginx ? I now how to generate a wildcard certificate on certbot command line but could it be possible to add this feature in bunkerized-nginx ?
wildcard certificate in certbot
sudo certbot certonly --manual -d *.mydomaine.net --agree-tos --no-bootstrap
the config I test :
- SERVER_NAME="*.mydomaine.me nextcloud.mydomaine.me syno.mydomaine.me"
Thanks :)
Thanks