Skip to content

when Load private key with RSA, try PKCS1 failed,but not to try PKCS8; #1724

@watermelon-zai

Description

@watermelon-zai

Describe the bug
package io.kubernetes.client.util.SSLUtils.class

private static PrivateKey loadKey(InputStream keyInputStream, String clientKeyAlgo){...}

In this method, when it is' RSA ', try to use pkcs1, but if it fails to use pkcs1 and throws an exception, it will not try to use pkcs8, but the method ends directly; Is it necessary try catch or other?

** Client Version **
10.0.0

** Kubernetes Version **
v1.18.3

** Java Version **
Java 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions