Dec 3, 2019 Replies: 10 example how to use a client certificate with the MQTT client Attachments SocketFactory.zip 4 KB · Views: 397 Last edited: Dec 3, 2019 Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2019 #2 It is more correct to say that this project demonstrates how to connect to a broker that requires a client certificate. Nothing special needs to be done to connect to a SSL/TLS broker (except of changing tcp:// with ssl://)
It is more correct to say that this project demonstrates how to connect to a broker that requires a client certificate. Nothing special needs to be done to connect to a SSL/TLS broker (except of changing tcp:// with ssl://)
J jGubern Member Licensed User Longtime User Oct 13, 2020 #4 Hi, I am trying to create a client application for devices with AWS IoT broker. I think this example could help me but I think I am not doing something right when importing the Bouncy jar. I have added in the header B4X: #AdditionalJar: bcprov-jdk15on-165/ and I have placed the bcprov-jdk15on-165.jar in additional libraries. I get this error (release mode) Obviously, I'm not a Java expert (that's why I use b4x). any help? Thanks!
Hi, I am trying to create a client application for devices with AWS IoT broker. I think this example could help me but I think I am not doing something right when importing the Bouncy jar. I have added in the header B4X: #AdditionalJar: bcprov-jdk15on-165/ and I have placed the bcprov-jdk15on-165.jar in additional libraries. I get this error (release mode) Obviously, I'm not a Java expert (that's why I use b4x). any help? Thanks!
Erel B4X founder Staff member Licensed User Longtime User Oct 13, 2020 #5 It should be: B4X: #AdditionalJar: bcprov-jdk15on-165
J jGubern Member Licensed User Longtime User Oct 13, 2020 #6 Thanks Erel, but so I have it in the code The slash was an error writing the post not writing code in my program Any other idea? Thank you.
Thanks Erel, but so I have it in the code The slash was an error writing the post not writing code in my program Any other idea? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2020 #7 Please post the error message as text.
J jGubern Member Licensed User Longtime User Oct 14, 2020 #8 Thanks for your interest, message error: ---------- B4J Versión: 8.10 Java Versión: 8 Parseando código. (0.00s) Building folders structure. (0.00s) Compilando código. (0.01s) Compilado códigos de diseños. (0.00s) Organizando librerías. (0.00s) Compilando el código Java generado. Error javac 1.8.0_241 src\b4j\example\main.java:16: error: package org.bouncycastle.cert does not exist import org.bouncycastle.cert.X509CertificateHolder; ^ 1 error ------------- Line 16 Java in Main.java import org.bouncycastle.cert.X509CertificateHolder; Thanks.
Thanks for your interest, message error: ---------- B4J Versión: 8.10 Java Versión: 8 Parseando código. (0.00s) Building folders structure. (0.00s) Compilando código. (0.01s) Compilado códigos de diseños. (0.00s) Organizando librerías. (0.00s) Compilando el código Java generado. Error javac 1.8.0_241 src\b4j\example\main.java:16: error: package org.bouncycastle.cert does not exist import org.bouncycastle.cert.X509CertificateHolder; ^ 1 error ------------- Line 16 Java in Main.java import org.bouncycastle.cert.X509CertificateHolder; Thanks.
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2020 #9 Looks like you need to add another jar: bouncycastle.org Home of the Legion of the Bouncy Castle and their Java cryptography resources and open source code www.bouncycastle.org
Looks like you need to add another jar: bouncycastle.org Home of the Legion of the Bouncy Castle and their Java cryptography resources and open source code www.bouncycastle.org
madru Active Member Licensed User Longtime User Oct 14, 2020 #10 you will need those to get it running: B4X: #AdditionalJar: bcprov-jdk15on-160 #AdditionalJar: bcpkix-jdk15on-164
you will need those to get it running: B4X: #AdditionalJar: bcprov-jdk15on-160 #AdditionalJar: bcpkix-jdk15on-164