Browse Source

remove some now useless code

tags/0.1.2
Bernd Zeimetz 1 year ago
parent
commit
4adbbffb60
2 changed files with 0 additions and 55 deletions
  1. 0
    6
      manifests/certificate/csr.pp
  2. 0
    49
      templates/certificate/cert.cnf.erb

+ 0
- 6
manifests/certificate/csr.pp View File

@@ -42,12 +42,6 @@ define dehydrated::certificate::csr(
$key_dir = $::dehydrated::key_dir
$crt_dir = $::dehydrated::crt_dir

if (!empty($subject_alternative_names)) {
$req_ext = true
} else {
$req_ext = false
}

$crt = "${crt_dir}/${base_filename}.crt"
$key = "${key_dir}/${base_filename}.key"
$csr = "${csr_dir}/${base_filename}.csr"

+ 0
- 49
templates/certificate/cert.cnf.erb View File

@@ -1,49 +0,0 @@
# file managed by puppet

# This definition stops the following lines choking if HOME isn't
# defined.
HOME = .
RANDFILE = $ENV::HOME/.rnd

[ req ]
distinguished_name = req_distinguished_name
prompt = no
<% if @req_ext -%>
req_extensions = v3_req
<% end -%>

[ req_distinguished_name ]
commonName = <%= @dn %>
<% unless @country.nil? -%>
countryName = <%= @country %>
<% end -%>
<% unless @state.nil? -%>
stateOrProvinceName = <%= @state %>
<% end -%>
<% unless @locality.nil? -%>
localityName = <%= @locality %>
<% end -%>
<% unless @organization.nil? -%>
organizationName = <%= @organization %>
<% end -%>
<% unless @unit.nil? -%>
organizationalUnitName = <%= @unit %>
<% end -%>
<% unless @email.nil? -%>
emailAddress = <%= @email %>
<% end -%>

<% if @req_ext -%>
[ v3_req ]
subjectAltName = @alt_names

[ alt_names ]
DNS.1 = <%= @dn %>
<%- i=2 -%>
<% @subject_alternative_names.each do |val| -%>
DNS.<%= i -%> = <%= val %>
<%- i = i+1 -%>
<% end -%>

<% end %>


Loading…
Cancel
Save