Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing BouncyCastle Dep #63

Closed
kferrone opened this issue Dec 30, 2020 · 3 comments
Closed

Missing BouncyCastle Dep #63

kferrone opened this issue Dec 30, 2020 · 3 comments
Assignees
Milestone

Comments

@kferrone
Copy link

When I try and connect with the credentials provided by k3s I get the following error:

An internal error occurred during: "connect to kubernetes - use context:pi-cluster".
JcaPEMKeyConverter is provided by BouncyCastle, an optional dependency. To use support for EC Keys you must explicitly add this dependency to classpath.

Can this simply be added as a Maven dep?

@de-jcup
Copy link
Owner

de-jcup commented Jan 2, 2021

At fabric8io/kubernetes-client#1796 there is a discussion about this.
They didn't add it to the maven plugin because it was a "heavy dependency".

"Adding that at a maven dep " - this is an eclipse plugin, so we could either

  • add an additional library eclipse plugin and provide the missing bouncy castle dependencies
  • add bouncy castle as normal dependency inside the ekube plugin (simpler approach, so prefereable...)

So I would do following steps:

  • Check version dependencies as in former link described and transform from maven to gradle:
 <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-ext-jdk15on</artifactId>
      <version>${bouncycastle.version}</version>
    </dependency>
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcpkix-jdk15on</artifactId>
      <version>${bouncycastle.version}</version>
    </dependency>
  </dependencies>

This example references a bouncy castle version which is avaliable for JDK 1.5

https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.68
https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on/1.68

==>

dependencies {
       // https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on
      compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.68'

     // https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on
     compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.68'
}

@de-jcup de-jcup added this to the 0.9.0 milestone Jan 2, 2021
@de-jcup de-jcup self-assigned this Jan 2, 2021
@de-jcup de-jcup closed this as completed in c10178f Jan 2, 2021
@de-jcup
Copy link
Owner

de-jcup commented Jan 2, 2021

@kferrone : I just released 0.9.0 on eclipse marketplace - it contains the dependencies. So should work now

@kferrone
Copy link
Author

kferrone commented Jan 2, 2021

It sure does!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants