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

KMQTT Broker - Provide a method to add SecretKeyFactory algorithm to decrypt the PKCS12 file if device doesn't have it by default. #55

Open
nishankhadka09 opened this issue Jul 18, 2024 · 1 comment

Comments

@nishankhadka09
Copy link

Ran the KMQTT Broker on Android10 with TLS enabled.
Ran into the following exception:

java.io.IOException: exception decrypting data - java.security.NoSuchAlgorithmException: 1.2.840.113549.1.5.12 SecretKeyFactory not available
at com.android.org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.cryptData(PKCS12KeyStoreSpi.java:730)
at com.android.org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.engineLoad(PKCS12KeyStoreSpi.java:978)
at java.security.KeyStore.load(KeyStore.java:1484)
at socket.tls.TLSServerSocket.(TLSServerSocket.kt:32)
at socket.ServerSocketLoop.(ServerSocketLoop.kt:15)
at mqtt.broker.Broker.(Broker.kt:50)
at mqtt.broker.Broker.(Unknown Source:0)
at mqtt.broker.Broker.(Broker.kt:20)

@nishankhadka09 nishankhadka09 changed the title Provide a method to add SecretKeyFactory algorithm to decrypt the PKCS12 file if device doesn't have it by default. KMQTT Broker - Provide a method to add SecretKeyFactory algorithm to decrypt the PKCS12 file if device doesn't have it by default. Jul 18, 2024
@davidepianca98
Copy link
Owner

Hey, thank you for posting the issue, I will look into this in the next weeks

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