lib/puppet/ssl/host.rb in puppet-2.6.16 vs lib/puppet/ssl/host.rb in puppet-2.6.17
- old
+ new
@@ -204,9 +204,10 @@
end
end
def initialize(name = nil)
@name = (name || Puppet[:certname]).downcase
+ Puppet::SSL::Base.validate_certname(@name)
@key = @certificate = @certificate_request = nil
@ca = (name == self.class.ca_name)
end
# Extract the public key from the private key.