/ppp secret print detail file=secrets.txt Then view the file:
Introduction MikroTik RouterOS is widely used for PPP (Point-to-Point Protocol) services such as PPPoE, PPTP, L2TP, SSTP, and OpenVPN. The /ppp secret configuration stores user credentials—username and password—for authentication. By default, when you run an export command, passwords are hidden (displayed as password="..." ). This security measure prevents accidental exposure. However, legitimate scenarios (migration, backup automation, auditing) require exporting secrets with plaintext passwords. mikrotik export ppp secrets with password
/file print where name="secrets.txt" However, this still hides passwords in older versions. The only reliable method is to use the /ppp secret export command in a safe environment where the configuration is stored in plaintext? Actually, no—export always hides. /ppp secret print detail file=secrets
import librouteros api = librouteros.connect( host='192.168.88.1', username='admin', password='', port=8728, use_ssl=False ) This security measure prevents accidental exposure