puppetserver-ca 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33d0c2bbf4e4efae9ed5ee88619f47bfbd850b24b0e7fff02bf7e6a106d40d18
4
- data.tar.gz: 70542df4956703b70b73ab3aa8e5cb4ef8c007925fb47dc1e2197d762e1a3269
3
+ metadata.gz: dd192c17f1178829548e7c39aff278a87fcc6bc699d7a1a357fcf84a53af7190
4
+ data.tar.gz: a05ef2372661026a0bb3c539d8584e25ec6b4b0b9e0d61752de4335e23a95804
5
5
  SHA512:
6
- metadata.gz: 399ef8c2fecd89f42db48d848685f61ac9efaffa1039a8e726b4c1b60dda3d82c996c4fff2cec8d315a35bcf5643a46233ae0647a5f79e2f730055e41b404e6f
7
- data.tar.gz: 342d56b051591b0fbf2211e3f75dd7249ff934f087f1ad2b0005cbdc4dbb0d5d6228e22b248ab22d9a4bb90dd21026daa0ac7fc363937652b5887fe971b29079
6
+ metadata.gz: d1c0059436ac51099bf0f73f6ad72a0989ccbf59e3e934b8f213ffd05c0c89ed4c5a84ce9b32b0a0e76977ab46b9e17f0474e890bc9b7136cfde5f8224f2b83c
7
+ data.tar.gz: 6fe6cd33aa3712d26444d0288184273c8184e5172bdbcb894516f450a316a0b41981428a6f07b1135f984a915fb09b9d5eb7656982d742afaf34fec5ad86c650
@@ -296,7 +296,9 @@ BANNER
296
296
  end
297
297
 
298
298
  def process_alt_names(alt_names, certname)
299
- return '' if alt_names.empty?
299
+ # It is recommended (and sometimes enforced) to always include
300
+ # the certname as a SAN, see RFC 2818 https://tools.ietf.org/html/rfc2818#section-3.1.
301
+ return "DNS:#{certname}" if alt_names.empty?
300
302
 
301
303
  current_alt_names = alt_names.dup
302
304
  # When validating the cert, OpenSSL will ignore the CN field if
@@ -74,15 +74,14 @@ module Puppetserver
74
74
  end
75
75
 
76
76
  def default_certname
77
- @certname ||=
78
- hostname = Facter.value(:hostname)
79
- domain = Facter.value(:domain)
80
- if domain and domain != ''
81
- fqdn = [hostname, domain].join('.')
82
- else
83
- fqdn = hostname
84
- end
85
- fqdn.chomp('.')
77
+ hostname = Facter.value(:hostname)
78
+ domain = Facter.value(:domain)
79
+ if domain and domain != ''
80
+ fqdn = [hostname, domain].join('.')
81
+ else
82
+ fqdn = hostname
83
+ end
84
+ fqdn.chomp('.')
86
85
  end
87
86
 
88
87
  # Resolve settings from default values, with any overrides for the
@@ -1,5 +1,5 @@
1
1
  module Puppetserver
2
2
  module Ca
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetserver-ca
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-09 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter