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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd192c17f1178829548e7c39aff278a87fcc6bc699d7a1a357fcf84a53af7190
|
4
|
+
data.tar.gz: a05ef2372661026a0bb3c539d8584e25ec6b4b0b9e0d61752de4335e23a95804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
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
|
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.
|
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:
|
11
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facter
|