zoraxy icon indicating copy to clipboard operation
zoraxy copied to clipboard

[QUESTION] Wildcard lets'encrypt certificat

Open barto95100 opened this issue 1 year ago • 25 comments

Just one question how to do that ? lets'encrypt with wildcard ? because if i configure to create one certificat per domain/subdomain i receive the block message acme because mose request .... (I migrate from NPM to zoraxy for test zoraxy solution)

barto95100 avatar Nov 16 '23 12:11 barto95100

I only know that you can create a cert containing multiple subdomains but I never tried using a wildcard. I guess the ACME module maintainer @yeungalan might be able to help you with that.

tobychui avatar Nov 16 '23 12:11 tobychui

Ok, I used this on NPM with DNS ovh and work good :)

It's possible to used zoraxy to create a certificat with multiple domaine name ? how to do that ?

with this section ?

CleanShot 2023-11-16 at 15 53 44

barto95100 avatar Nov 16 '23 14:11 barto95100

Ok, I used this on NPM with DNS ovh and work good :)

It's possible to used zoraxy to create a certificat with multiple domaine name ? how to do that ?

with this section ?

CleanShot 2023-11-16 at 15 53 44

Do you mean multiple domains or subdomains? If you want one cert for all your domains, upload them to the Default Certificate section here. 圖片

Otherwise, you can use comma separated subdomains to generate new certificates, like s1,example.com,s2.example.com

tobychui avatar Nov 16 '23 15:11 tobychui

Ok i test to add multi subdomain and its ok for generation certificat: CleanShot 2023-11-16 at 16 36 02@2x

but when I test to add new subdomain on zoraxy, how I can inform zoraxy to use this certificat multi-subdomain ?

CleanShot 2023-11-16 at 16 37 42@2x CleanShot 2023-11-16 at 16 39 18@2x

barto95100 avatar Nov 16 '23 15:11 barto95100

Can't you just use *.yourdomain.com for LetsEncrypt?

I have wildcardcerts for multiple domains from my provider, Zoraxy picks the right one automaticly.

sub.domain1.com uses cert 1, sub.domain2.com uses cert 2.

No need to set something on this end. The cert only needs to exist

Uncheck "Requieres TLS" and "Skip Verification" from your subdomain proxy. It works without this.

Morethanevil avatar Nov 17 '23 09:11 Morethanevil

When I test to add *.domain.com "acme-tool" I receive the error:

CleanShot 2023-11-17 at 11 58 54 and nslookup : CleanShot 2023-11-17 at 12 06 18@2x

wildcard is configured on ovh:

*.wxxxxxxxx.fr. 0 A 1xx.xxx.xxx.70

Maybe I don't understand how to configure .... :(

it would actually be simpler to have a wildcard certificate but I can't understand how to do it with zoraxy

barto95100 avatar Nov 17 '23 11:11 barto95100

Try this in OVH:

* 0 A 1xx.xxx.xxx.70

Morethanevil avatar Nov 17 '23 11:11 Morethanevil

this is already what is configured: CleanShot 2023-11-17 at 12 42 06

barto95100 avatar Nov 17 '23 11:11 barto95100

Remove the Dot . at the beginning of your domain

Morethanevil avatar Nov 17 '23 12:11 Morethanevil

it's not possible with gui ovh but in text plain this is the configuration:

CleanShot 2023-11-17 at 14 04 46@2x

barto95100 avatar Nov 17 '23 13:11 barto95100

I had no time yesterday, but today I tested LetsEncrypt with wildcard on my domain. I can confirm your bug in Zoraxy. It is not from OVHs site.

Screenshot_20231118_092711

Please be patient for a bugfix. You can use mutliple SSL providers as a workaround. Some certs from LetsEncrypt for your subdomains, Buypass and ZeroSSL for other subdomains. Buypass and ZeroSSL are european SSL providers, they give free certs too, exactly like LetsEncrypt from america.

Morethanevil avatar Nov 18 '23 08:11 Morethanevil

Ok no problem I thought I was doing something wrong ;) I test with zerossl :)

barto95100 avatar Nov 18 '23 11:11 barto95100

any news ?

barto95100 avatar Dec 10 '23 21:12 barto95100

any news to resolve this problem ? @Morethanevil

barto95100 avatar Feb 29 '24 13:02 barto95100

@barto95100 You might try to ping the author of the ACME module @yeungalan or another contributor @daluntw. In my opinion, the lego library (which itself support DNS-01 / wildcard certificate challenge) was already used in Zoraxy so I don't think it would be difficult to add support for DNS-01 challenge. I guess the reason that this is still not implemented is mostly due to little incentive from contributors and I am too busy to help.

tobychui avatar Feb 29 '24 14:02 tobychui

Excuse if I ping the wrong user... :( my bad

if the dns-challenge is possible to generate the wildcard is appreciated because, in my case and other (most people test zoraxy now in my entourage) we have multiple sub domain and with limitation of let's encrypt to generate certificate it's a problem because is neccesary to wait 3hours to add new certificate, with wildcard no problem coming soon

My workaround is to used certbot directly to generate wildcard and configure ln -s to add file from lets'encrypt certbot to zoraxy

barto95100 avatar Mar 01 '24 09:03 barto95100

Hi @barto95100, I succeed to use a wildcard ssl certificate by generating it with Nginx Proxy Manager (DNS challenge with OVH) and importing it into "Hosts Certificates" section. Seems to work! PS : you don't have to generate a new ssl certificate each time your create a new Proxy Rule.

PastaGringo avatar Mar 08 '24 16:03 PastaGringo

Hi @barto95100, I succeed to use a wildcard ssl certificate by generating it with Nginx Proxy Manager (DNS challenge with OVH) and importing it into "Hosts Certificates" section. Seems to work! PS : you don't have to generate a new ssl certificate each time your create a new Proxy Rule.

YEs I use certbot directly to generate certificate with API OVH and create link symbolic and work perfectly.

I test and i want create a docker image to that

barto95100 avatar Mar 08 '24 18:03 barto95100

You can integrate LEGO cert with Zoraxy to achieve that https://github.com/go-acme/lego

nicomda avatar Mar 15 '24 10:03 nicomda

@nicomda Thanks for the tips. I already mentioned about the use of LEGO in this thread but seems no contributor want to pick it up. I would have add that in by myself if I am not busying with my master thesis. If anyone want to integrate this feature and don't know where to starts, please feel free to PM me :)

tobychui avatar Mar 15 '24 10:03 tobychui

Just for information i finish the image with zaraxy and Certbot, and work perfectly :)

The repo : https://github.com/barto95100/zoraxy

I'm not developper and not possibel for me to help for lego :(

barto95100 avatar Mar 15 '24 11:03 barto95100

I succeed to use a wildcard ssl certificate by generating it with Nginx Proxy Manager (DNS challenge with OVH) and importing it into "Hosts Certificates" section. Seems to work!

Yeah... works for 90 Days.... well good enough for now.

btw, ZeroSSL supports Wildcard Domains only for the 50$/month plan. The free Go SSL certificates from Buypass CA doesn’t allow wildcard. It doesn’t mean wildcard isn’t supported at all. Wildcard is a paid product from Buypass CA.

haldi4803 avatar Apr 26 '24 15:04 haldi4803

Yes, it's neccesarry to wait for lets'encrypt added dns challenge on zoraxy +1

barto95100 avatar Apr 26 '24 21:04 barto95100

+1 to have DNS01 support on Zoraxy

Great work guys

aweher avatar May 01 '24 10:05 aweher

Fyi I think this is covered by the following issue https://github.com/tobychui/zoraxy/issues/49

Teifun2 avatar May 03 '24 06:05 Teifun2

Featured added in release v3.0.4

tobychui avatar May 18 '24 07:05 tobychui

Still get the "could not determine solvers" issue with 3.0.9 Any tips for LetsEncrypt and Wildcards?

haldi4803 avatar Jul 25 '24 20:07 haldi4803

Still get the "could not determine solvers" issue with 3.0.9 Any tips for LetsEncrypt and Wildcards?

Make sure you have no custom DNS like Pihole in your system that blocks some of the required DNS queries and you got the correct API keys for your DNS provider.

tobychui avatar Jul 26 '24 01:07 tobychui

Error: one or more domains had a problem: [*.domain.tld] [*.domain.tld] acme: error presenting token: godaddy: no subdomain because the domain and the zone are identical: domain.tld.

That's a DNS issue from godaddys side? Wrong config?

haldi4803 avatar Jul 26 '24 05:07 haldi4803