# file managed by puppet
#
# SSLeay example configuration file.
#

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

[ req ]
default_bits            = 2048
default_md              = sha1
default_keyfile         = privkey.pem
distinguished_name      = req_distinguished_name
prompt                  = no
<% if @altnames and not @altnames.empty? -%>
req_extensions          = req_ext
<% end -%>

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

<% unless @altnames.empty? -%>
[ req_ext ]
subjectAltName = "<%= @altnames.collect! {|i| "DNS: #{i}" }.join(', ') -%>"
<% end %>


# file managed by puppet
#
# SSLeay example configuration file.
#

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

[ req ]
default_bits            = 2048
default_md              = sha256
default_keyfile         = privkey.pem
distinguished_name      = req_distinguished_name
prompt                  = no
<% if @altnames and not @altnames.empty? -%>
req_extensions          = req_ext
<% end -%>

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

<% unless @altnames.empty? -%>
[ req_ext ]
subjectAltName = "<%= @altnames.collect! {|i| "DNS: #{i}" }.join(', ') -%>"
<% end %>


Switch to more secure SHA256 digest
Switch to more secure SHA256 digest

Change-Id: Ic2e522f125be6bcb0fdef2b0e2993ca98290503f
Closes-Bug: #1488993
Upstream commit: https://github.com/camptocamp/puppet-openssl/commit/f4d27b82a9d220beda51f867ce326c10afa06d43
