Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multilevel DNS names in SAN (Backport #1503) #1544

Merged

Conversation

lhannigbrinck
Copy link
Member

What:
Backport of #1503

Why:For example configuring a DNS name with two level of subdomains is currently not possible currently. This is because of the way the SAN values are split within the single env variable. Configuring a DNS name like subdomainof.subdomain.example.com would result in an ip_address = "subdomainof.subdomain.example.com" entry in the template. This entry is then validated as ipv6 address instead of a DNS name and fails certtool. There may be other errors with the current approach.

How did you test it:

I created multiple self signed certificates and some CSR with different SAN combinations and verified the created SAN values manually.

Checklist:

The Subject Alternative Name (SAN) environment variable is now split
into multiple variables to prevent any type of glob based typing.
Also allow defining multiple values within an SAN variable separated by
';'.
@lhannigbrinck lhannigbrinck requested a review from a team as a code owner June 2, 2021 09:57
@timopollmeier timopollmeier merged commit c8efd3d into greenbone:master Jun 3, 2021
@lhannigbrinck lhannigbrinck deleted the subject_alt_name_update_master branch June 3, 2021 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants