-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
MqttClient asks for private key #377
Comments
The error is not related to this library, you will probably need to have the private key of the certificate. |
Well i think is not possible to have the server's certificate private key, due to security reasons. |
You are not supposed to use the server certificate as your client
certificate!
…On Tue, Jul 24, 2018 at 11:01 AM George Makrakis ***@***.***> wrote:
Well i think is not possible to have the server's certificate private key,
due to security reasons.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#377 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFJO-63pADh1oYf21WXOo95-CsmoMpqMks5uJzbAgaJpZM4Vc28u>
.
|
Are you trying to verify the server certificate? or use this certificate to connect with the broker? |
Yes i am trying to connect with the broker, the certificate is self-signed by the ca.crt which actually is the server. |
You need a different certificate for the client connection. I suggest posting a question on StackOverflow to get better answers. Good luck! |
I also tried to use client certificates made with OpenSSL including their private key too but the error keeps up. |
Hey @georgemakrakis , it seems that you should create a pkcs12 file (as stated in #202). This pkcs12 has to include: server certificate, CA certificate, and client/private key. However, I am experiencing still some issue to complete the connection with TLS. Did you solve your issue? |
Hello @lore4, no i have changed the entire architecture and design of the solution i wanted to implement. I have wrote some custom connection using web-socket for this. I have also tried to create the pkcs12 file with all the files included but then the program told be that i couldn't verify the server certificate even if i have added the property to do it (.WithTls(true,....), so i abandoned the use of this package for my project. |
Hi @georgemakrakis , |
Hello,
I have the following bug, when trying to connect to a mosquitto broker on a server using the following options, i get the following error about the Private Key, but i am using the server,crt to authenticate which has no private key assigned.
Code:
Error
Any help will be appreciated, thanks!
The text was updated successfully, but these errors were encountered: