mosquitto-users team mailing list archive
-
mosquitto-users team
-
Mailing list archive
-
Message #00077
Re: SSL connection from Java client to mosquitto broker: "no certificate returned"
Hi Sharon,
> Run my client Java program with the client certs from the test/ssl directory - successfully!
> At last I know my code works correctly!
> Would like me to post it somewhere for posterity?
By all means - I'm sure the Paho guys would be pleased to have it as
an example of how to use SSL. I'm not sure where the best place to put
it would be though.
> 2) generated a new set of certs without encryption.
> mosquito_sub fails to connect with these certs.
> I attach all the certs used.
Great, after a bit of playing I see what's going on. The problem is
that you've got the exact same details with your CA as with your
server and client certificates. Try changing the Organisational Unit
and/or the Common Name to ensure that the tools can distinguish
between your server/client certificates and the CA that signed them. I
should add that to the docs.
Cheers,
Roger
Follow ups
References