-
Notifications
You must be signed in to change notification settings - Fork 71
TLS example doesn't work #181
Comments
@tekjar Hello, could you help on this? |
@GopherJ Are you using ip address by any chance? https://github.com/AtherEnergy/rumqtt/blob/master/src/client/network.rs#L208 Rumqtt doesn't support direct ip addresses on tls. You need to provide a dns |
Hello, I still get error message:
Could you help me on this? we would like to use |
@tekjar any ideas? Thanks for your help! |
Probably your certificate doesn't have correct SAN? It's necessary for rustls |
Hello @tekjar , yes probably, any idea how to check it? I did some researches but I still don't know how to check it. |
Hello @tekjar , sadly that it may be caused by this issue, but I cannot change the root certificate. In this case, I also would like to just test
what I did:
am I doing something wrong? or it's just because the test certificate is expired? |
I wrote a script which generates SAN certificates, but still I get errors...........................:)
|
Error in your previous message says https://github.com/AtherEnergy/rumqtt/tree/master/utils/certgenerator This might probably help. I might not be able to dig deep into the problem as I'm in a time crunch at the moment and I'm not working on this repo anymore. But I might be able to help in a week as I'm creating a new broker and I have to verify the same at that time. Alternately I can give you access to my private repo if you want to test the new client with TLS. But it's in very early stages |
OK I used your script and now I get new error - -:
|
trace:
|
is there a workaround @tekjar , I just would like to make it works... |
@GopherJ I just verified both your code and the example. Both of them work for me I suspect you are not using correct ca which is used to sign the server certificate. It's |
Hello @tekjar , could you tell me what shall I use?
I don't think I made a mistake, but if yours can work then maybe I did something different from you |
Please join that group. We'll resolve this there |
hello @tekjar , could you send a new invitation, I cannot join for some strange reasons, I'll try now. |
thanks @tekjar |
Hello,
The tls example doesn't work for me, I tried the following code:
I got the following message while executing
RUST_BACKTRACE=1 cargo run --example tls
, is there any workaround or am I doing something wrong?The text was updated successfully, but these errors were encountered: