[solved] Wrong domain order

I have create a certificate for domain01.it.
I have used this order for domains: domain01.it, staff,domain01.it, www,domain01.it.
All domains work fine.
This is /etc/letsencrypt/renewal/www.domain01.it content:

authenticator = webroot
installer = None
account = xxxxxxxxxxxxx
webroot_path = /var/www/domain01/public,
rsa_key_size = 2048
domain01.it = /var/www/domain01/public
staf,domain01.it = /var/www/domain01/public
www,domain01.it = /var/www/domain01/public

I have create a certificate form domain02.it, but i have used this order for domain:
www,domain02.it, domain02.it, staff.domain02.it
staff.domain02.it dont’work.
This is /etc/letsencrypt/renewal/domain02.it content:

cert = /etc/letsencrypt/live/domain02.it/cert.pem
privkey = /etc/letsencrypt/live/domain02.it/privkey.pem
chain = /etc/letsencrypt/live/domain02.it/chain.pem
fullchain = /etc/letsencrypt/live/domain02.it/fullchain.pem

account = xxxxxxxxxxxxx
authenticator = webroot
rsa_key_size = 2048
installer = None
webroot_path = /var/www/domain02/public,
www,domain02.it = /var/www/domain02/public
domain02.it = /var/www/domain02/public
staff,domain02.it = /var/www/domain02/public

what can i do for solving this problem?

I’m very sorry, but my crystal ball was damaged yesterday, so I’m missing some info… Somewhere in your post, mostly containing two renewal configs, I’m only seeing “dont’work”. But I fail to understand what exactly isn’t working and what the actual problem is? Because just the order of the domains shouldn’t give you any trouble at all.

Ok, i’m sorry.
This is the ssllabs results of the second domain:

1 Like

Ok, is an error of nginx config!!!
I have not change the certificate.
Sorry :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.