Skip to content

Please make KeyManager agnostic of JRE provider. #2390

@gilsharon321

Description

@gilsharon321

AWS core has "SunX509" as a hard-coded Key Manager option.

KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");

Describe the bug

Using the API on IBM JRE where:
ssl.KeyManagerFactory.algorithm=IbmX509
will fail to create Key Manager.

Expected Behavior

choosing the default key manger would let users use other options, for example ibmX509.

Current Behavior

Using the API on IBM JRE where:
ssl.KeyManagerFactory.algorithm=IbmX509
will fail to create Key Manager.

Steps to Reproduce

Possible Solution

KeyManagerFactory KMF = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
should fix this.

Context

I am trying to use the AWS API, running on IBM JRE. getting errors when SunX509 is not found.

Your Environment

  • AWS Java SDK version used: 1.11.825
  • JDK version used: java version "1.8.0_241", IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20200124_438197 (JIT enabled, AOT enabled)
  • Operating System and version: Red Hat Enterprise Linux Server release 7.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions