Итак, я создал сертификат с openssl, который содержит, среди прочего, * .dev и d.dev в своем SAN.По какой-то причине доступ к https://d.dev работает, но доступ к https://c.dev завершается неудачно с NET::ERR_CERT_COMMON_NAME_INVALID
Команды
openssl genrsa -out rootCA.key.pem 4096
openssl req -x509 -new -subj '/C=DE/ST=00/O=mkg20001, Inc.' -nodes -key rootCA.key.pem -sha256 -days 1024 -out rootCA.crt.pem
openssl genrsa -out "dev.key.pem" 4096
openssl req -new -sha256 \
-key "dev.key.pem" \
-subj "/C=DE/ST=00/O=mkg20001, Inc./CN=dev" \
-extensions SAN \
-reqexts SAN \
-config <(cat /etc/ssl/openssl.cnf \
<(printf "\n[SAN]\nsubjectAltName='DNS.1:dev,DNS.2:*.dev,DNS.3:*.*.dev,DNS.4:d.dev'")) \
-out "dev.csr.pem"
openssl x509 -req -extensions SAN -extfile <(cat /etc/ssl/openssl.cnf \
<(printf "\n[SAN]\nsubjectAltName='DNS.1:dev,DNS.2:*.dev,DNS.3:*.*.dev,DNS.4:d.dev'")) -in "dev.csr.pem" -CA rootCA.crt.pem -CAkey rootCA.key.pem -CAcreateserial -out "dev.crt.pem" -days 500 -sha256
Сертификат
-----BEGIN CERTIFICATE-----
MIIFIDCCAwigAwIBAgIJAI7IJYxpot4iMA0GCSqGSIb3DQEBCwUAMDMxCzAJBgNV
BAYTAkRFMQswCQYDVQQIDAIwMDEXMBUGA1UECgwObWtnMjAwMDEsIEluYy4wHhcN
MTgwOTEwMTg1MjIzWhcNMjAwMTIzMTg1MjIzWjBBMQswCQYDVQQGEwJERTELMAkG
A1UECAwCMDAxFzAVBgNVBAoMDm1rZzIwMDAxLCBJbmMuMQwwCgYDVQQDDANkZXYw
ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC/Xmoic1UgC5GH/R8WPlwJ
6DaVO/04WF2ea1zaE5fsPydvZ8Xm7YIwgrNfw0aaxRsfTKPP8PNjMl/i4WLwL58g
GrsQdL3gwpAUxiN29wzpoteTOxuYMn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