Secure Communication to broker by mqttfx with pcks12 cert

Hi,

How to create secure communication to broker by mqttfx with pcks12 cert ?

Thanks !

Hi Rahul,

Thanks for your question. The MQTT.fx client does not support this.

What are you trying to achieve? Perhaps knowing more about your “use-case” we could suggest you a better option.

Kind regards,
Dasha from HiveMQ Team

Hi @Daria_H ,

I have pkcs12 certificate and would like to connect to broker with ant client.

Could you please suggest me tool which suppy the pkcs12 certificate.

Thanks !

Hi Rahul,

Thanks for clarification, that your questions is not about mqttfx! Now let’s clarify further details:

  • What is the broker that you are trying to connect to? Is it your self-hosted HiveMQ broker or some other broker?
  • How did you get the PKCS12 store file? What command(s) you run? Does it contain the server’s or the client’s certificate / chain / key?

Regards,
Dasha from HiveMQ Team

1 Like

Hi Rahul,

I could offer you an alternative solution: the MQTT.fx tools supports .jks keystore. You could convert the .p12 keystore in to a .jks keystore. Then you could use it with MQTT.fx tool.
You can convert .p12 into a .jks keystore using the keytool utility (in comes with Java usually):

keytool -importkeystore -srckeystore keystore.p12 -destkeystore keystore.jks -srcstoretype PKCS12 -deststoretype jks -deststorepass changeme

(where “changeme” is my keystore password).

If .jks is not an option for you or in case if there is any issue with the command, please let us know.

Thanks,
Dasha from HiveMQ Team

1 Like

Hi @Daria_H ,

Thanks for your support !

1 Like