Palo Alto Change Master Key with HA (Active/Passive)

Palo Alto Change Master Key with HA (Active/Passive)

When a Palo Alto Networks firewall is configured with a unique master key, you need to change the master key before it expires, as when the master key expires, the firewall will reboot into maintenance mode, and you’ll need to factory reset it.

In this post, I will show you step by step how to change the Palo Alto Networks firewall master key before it expires.

Prerequisites

If you haven’t configured a master key yet, my post, Palo Alto Configure Master Key with HA (Active/Passive), goes into detail on the process.

The Process

For more information on backing up your firewall config, my post, Palo Alto Config Backup, goes into detail.

Disable HA Config Sync

We need to disable the HA configuration synchronization on both firewalls in the HA setup before changing the master key.

Disable HA Config Sync GUI

Disable HA Config Sync CLI

If enabled is set to yes, we need to disable it.

Change Master Key

With HA config sync disabled, we can safely change the master key on both firewalls. The new master key must be exactly 16 characters.

Change Master Key GUI

In this example, I will set the master key’s lifetime to 730 days and set the reminder to change the master key to 90 days.

As soon as you click OK, an automatic commit task should start.

If the automatic commit task didn’t start, manually commit the changes.

Change the Master Key CLI

In my example, I want to use 90 days for the reminder (2160 hours) and 730 days for the lifetime (17520 hours).

In my example, my command will look like this request master-key current-master-key paloalto12345678 reminder 2160 lifetime 17520 new-master-key 12345678paloalto

If the auto-commit job didn’t start, manually commit the changes.

Enable HA Config Sync

Once the new master key is set to the same on both firewalls, we can safely enable HA configuration synchronization.

Enable HA Config Sync GUI

Enable HA Config Sync CLI

If enabled is set to no, we need to enable it.

Closing

That’s all it takes to change the master key on a Palo Alto Networks firewall before the master key expires.

If you want to read more about changing the master key, here is the Palo Alto Networks documentation.

Exit mobile version