Skip to content

Commit

Permalink
Fixes #38010 - Include keyalg in keytool for OpenJDK 17
Browse files Browse the repository at this point in the history
Signed-off-by: Eric D. Helms <[email protected]>
  • Loading branch information
ehelms committed Nov 12, 2024
1 parent a0f5240 commit dc0f12e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion lib/puppet_x/certs/provider/keystore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def generate_keystore
'-storepass:file', resource[:password_file],
'-alias', temp_alias,
'-dname', "CN=#{temp_alias}",
'-J-Dcom.redhat.fips=false'
'-J-Dcom.redhat.fips=false',
'-keyalg', 'RSA'
)
rescue Puppet::ExecutionFailure => e
Puppet.err("Failed to generate new #{type} with temporary entry: #{e}")
Expand Down
6 changes: 3 additions & 3 deletions spec/acceptance/candlepin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
}
package { 'java-11-openjdk-headless':
package { 'java-17-openjdk-headless':
ensure => installed,
}
Expand Down Expand Up @@ -242,7 +242,7 @@ class { 'certs::candlepin':
}
}
package { 'java-11-openjdk-headless':
package { 'java-17-openjdk-headless':
ensure => installed,
}
Expand Down Expand Up @@ -283,7 +283,7 @@ class { 'certs::candlepin':
path => ['/bin', '/usr/bin'],
}
}
package { 'java-11-openjdk-headless':
package { 'java-17-openjdk-headless':
ensure => installed,
}
include certs::candlepin
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/keystore_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<<-PUPPET
$keystore_password_file = '/etc/pki/keystore_password-file'
package { 'java-11-openjdk-headless':
package { 'java-17-openjdk-headless':
ensure => installed,
}
Expand Down
6 changes: 3 additions & 3 deletions spec/acceptance/truststore_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<<-PUPPET
$truststore_password_file = '/etc/pki/truststore_password-file'
package { 'java-11-openjdk-headless':
package { 'java-17-openjdk-headless':
ensure => installed,
}
Expand Down Expand Up @@ -94,7 +94,7 @@
<<-PUPPET
$truststore_password_file = '/etc/pki/truststore_password-file'
package { 'java-11-openjdk-headless':
package { 'java-17-openjdk-headless':
ensure => installed,
}
Expand Down Expand Up @@ -158,7 +158,7 @@
<<-PUPPET
$truststore_password_file = '/etc/pki/truststore_password-file'
package { 'java-11-openjdk-headless':
package { 'java-17-openjdk-headless':
ensure => installed,
}
Expand Down

0 comments on commit dc0f12e

Please sign in to comment.