From 37130be91eb463ddd8a626091cb49a09a15bfbc2 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 15 May 2013 12:41:53 -0700 Subject: certs - include all possible domains in subaltname, including one in commonname. --- lib/leap_cli/commands/ca.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/leap_cli/commands/ca.rb') diff --git a/lib/leap_cli/commands/ca.rb b/lib/leap_cli/commands/ca.rb index 2df7c97..da5bee9 100644 --- a/lib/leap_cli/commands/ca.rb +++ b/lib/leap_cli/commands/ca.rb @@ -372,12 +372,11 @@ module LeapCli; module Commands end def dns_names_for_node(node) - names = [node.domain.internal] + names = [node.domain.internal, node.domain.full] if node['dns'] && node.dns['aliases'] && node.dns.aliases.any? names += node.dns.aliases names.compact! end - names.delete(node.domain.full) # already set to common name return names end -- cgit v1.2.3