OS Manuals

/usr/bin/mosquitto_passwd

open source MQTT broker (FIPS)

From mosquitto-fips 2.1.2-r3 (enterprise-packages), captured 2026-11-08 by running mosquitto_passwd --help (exit 1). permalink

mosquitto_passwd is a tool for managing password files for mosquitto.

Usage: mosquitto_passwd [-H argon2id | -H sha512-pbkdf2] [-c | -D] passwordfile username
       mosquitto_passwd [-H argon2id | -H sha512-pbkdf2] [-c] -b passwordfile username password
       mosquitto_passwd -U passwordfile
 -b : run in batch mode to allow passing passwords on the command line.
 -c : create a new password file. This will overwrite existing files.
 -D : delete the username rather than adding/updating its password.
 -H : specify the hashing algorithm. Defaults to argon2id, which is recommended.
      Mosquitto 2.0 and earlier defaulted to sha512-pbkdf2.
      Mosquitto 1.6 and earlier defaulted to sha512.
 -U : update a plain text password file to use hashed passwords.

See https://mosquitto.org/ for more information.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.