Skip to content

Newly created store is of type PKCS12, even when storetype is JKS #406

@ricoapon

Description

@ricoapon

Describe the Bug

Whenever a new store is created, a command is executed to create a new store. If you specify, JKS as storetype, you still get PKCS12 as type.

Expected Behavior

The store type is JKS.

Steps to Reproduce

1, Create the following configuration:

java_ks { 'some_alias':
        ensure              => latest,
        target              => '/some_path',
        password            => 'some_password',
        certificate_content => '...'
        storetype           => 'jks'
      }
  1. Run puppet and make sure the store does not exist yet.

Environment

  • Java_ks version 4.3.1
  • Puppet version 6.27.0
  • Linux RHEL 7

Additional Context

I found the issue in the code. See keytool.rb function def create. Based on the storetype different code is executed. The else case is done when storetype is jks, but no storetype is set in this command. Adding it would solve the issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions