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

Can't initialize SslContext with AndroidKeyStoreRSAPrivateKey #13959

Open
haogev6 opened this issue Apr 9, 2024 · 1 comment
Open

Can't initialize SslContext with AndroidKeyStoreRSAPrivateKey #13959

haogev6 opened this issue Apr 9, 2024 · 1 comment

Comments

@haogev6
Copy link

haogev6 commented Apr 9, 2024

@normanmaurer I think there might be a bug where the last parameter 'keyStore' of JdkSslServerContext.newSSLContext isn't passed to the method buildKeyManagerFactory.
I've tried to specify the "AndroidKeyStore" type for an AndroidKeyStoreRSAPrivateKey, but it might be impossible to manipulate the key with the correct KeyStore.

@chrisvest
Copy link
Contributor

Create a KeyManagerFactory instance from your key store in your own code, and pass that instead of the key store.

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