Hello,
How to set common name at multi-domain certificate? I run сertbot with command
sudo certbot certonly \
--dns-cloudflare \
--dns-cloudflare-credentials /etc/letsencrypt/cloudflare.ini \
-d mx.domain.com -d mail.domain.com
and I got certificates at /etc/letsencrypt/live/mx.domain.com
. Then I check it and see common name is mail.domain.com
, not mx.domain.com
. But I need strict set common name to mx.domain.com
.
# openssl x509 -subject -ext subjectAltName -noout -in cert.pem
subject=CN = mail.domain.com
X509v3 Subject Alternative Name:
DNS:mail.domain.com, DNS:mx.domain.com
My old certificates got common name from first domain in certbot run command. But now something change at Let's Encrypt and my new certificates got first alphabetic domain as common name. Renew certificates aren't affected.