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

failed to initialize the client-side SSL context #8101

Closed
liuhedev opened this issue Jul 5, 2018 · 2 comments
Closed

failed to initialize the client-side SSL context #8101

liuhedev opened this issue Jul 5, 2018 · 2 comments

Comments

@liuhedev
Copy link

liuhedev commented Jul 5, 2018

Expected behavior

Actual behavior

07-05 10:10:53.396 17821-17821/com.example.administrator.testnetty E/MainActivity: failed to initialize the client-side SSL context

Steps to reproduce

InputStream crt = SingUtilsKt.openAsset(this, "TBOX000012.crt");
            InputStream pkcs = SingUtilsKt.openAsset(this, "TBOX000012.pkcs8.pem");
            InputStream ca = SingUtilsKt.openAsset(this, "ca.cer");

SslContextBuilder.forClient()
                    .sslProvider(SslProvider.JDK)
                    .keyManager(crt, pkcs)
                    .trustManager(ca)
                    .clientAuth(ClientAuth.REQUIRE)
                    .ciphers(cipher)
                    .build();

Minimal yet complete reproducer code (or URL to code)

Netty version

implementation files('src/libs/netty-all-4.1.15.Final.jar')
implementation files('src/libs/netty-tcnative-2.0.7.Final-linux-x86_64.jar')

JVM version (e.g. java -version)

openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

OS version (e.g. uname -a)

Linux liuhe-linux 4.15.0-24-generic #26~16.04.1-Ubuntu SMP Fri Jun 15 14:35:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

@normanmaurer
Copy link
Member

you should remove netty-tcnative-2.0.7.Final-linux-x86_64.jar from your class path... Also please include all the stack traces.

@liuhedev
Copy link
Author

liuhedev commented Jul 9, 2018

use netty4.1.25 reslove my crash problems.

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