Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cf-dev] Help required on using X.509 certificates with Californium library

let's talk about that at :  https://github.com/eclipse/californium/issues/655


Le 31/05/2018 à 13:21, Jasbir Singh Dhaliwal, IoT WoRKS a écrit :

We are using californium library as CoAP client as well as server.

coap client is provided with a X.509 certificate which is signed by a CA.

Also CoAP server is having its own server certificate which is signed by the same CA.

 

Now while a coap client is trying to communicate to the CoAP Server , it needs to set the identity by below one of the below two methods:

                public Builder setIdentity(PrivateKey privateKey, PublicKey publicKey)

                                OR

                public Builder setIdentity(PrivateKey privateKey, Certificate[] certificateChain, boolean preferRawPublicKeys)

 

Since only certificate is being shared to CoAP client to communicate with CoAP Server, absence of private Key results in above two methods to fail by throwing an error "Identity must be set".

 

Is there any way for a CoAP client to communicate to CoAP Server over DTLS without using Private Key ??

 

::DISCLAIMER::
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev


Back to the top