java-coap
java-coap copied to clipboard
Could java-coap using SSL with my own CA certificate?
I am trying the condition that I have my own CA, and I try to use client to use SSL to connect the server with the CA certificate. How could I implement it, I just could find the test about SSL using the secrete with keystore in this library.
Look at the tests, they are using own self sign CA. You would need to create own keystore.
Look at the tests, they are using own self sign CA. You would need to create own keystore.
I have a question is that, could the client just use the CA without keystore(.jks)?My ca certificate format is .crt
and another question is that I want to use DTLS/SSL(not using ProcessBuilder), but in the test (https://github.com/PelionIoT/java-coap/blob/26902e306995a439eb74335a3f35bcec74867d9c/coap-core/src/test/java/com/mbed/coap/transport/javassl/SSLUtils.java) it is about TLSv1.2, how can I do with DTLS/SSL?
No, you would need to make a keystore. There is very hand GUI tool to create keystores: https://keystore-explorer.org/
Java does not support DTLS so you would need to use some third party. In this fork: https://github.com/open-coap/java-coap, there is added integration for mbedtls that supports DTLS (PSK and Certificates): https://github.com/open-coap/java-coap/tree/master/mbedtls-transport
No, you would need to make a keystore. There is very hand GUI tool to create keystores: https://keystore-explorer.org/
Java does not support DTLS so you would need to use some third party. In this fork: https://github.com/open-coap/java-coap, there is added integration for mbedtls that supports DTLS (PSK and Certificates): https://github.com/open-coap/java-coap/tree/master/mbedtls-transport
so, you mean in master branch in this repository, it does not support DTLS directly and it does not support DTLS/SSL, right?
That's right
That's right
so in java-coap with TLS/SSL is based on TCP instead of UDP, right?
That's right, TLS is TCP based.