I have created a role like:
vault write pki/roles/2023-servers \
allowed_domains="mydomain.local" \
allowed_uri_sans="mydomain.local spiffe://*.mydomain.local" \
allow_any_name=true \
allow_ip_sans=true \
allow_subdomains=true \
allow_localhost=true \
allow_bare_domains=true \
allow_glob_domains=true \
allowed_dns_sans="mydomain.local"
and am trying to issue a certificate like such:
vault write pki_int/issue/mydomain-dot-local \
common_name="*.mydomain.local" \
alt_names="mydomain.local"
which gives me the following error:
subject alternate name mydomain.local not allowed by this role
What am I doing wrong?