Importing certificate with private key gives error "block-private-key unexpected here"
10955
Created On 05/13/22 17:12 PM - Last Modified 04/24/24 17:55 PM
Symptom
- Getting upload error as upload-> private-key-block-private-key unexpected here, upload -> private key is unexpected
- Customer trying to import certificate with private key into the firewall by context switching through Panorama.
Environment
- Panorama running PAN-OS 10.x
- Palo Alto Firewall running PAN-OS 9.x
- Using Context Switching to log into the Firewall through Panorama.
Cause
- Starting PAN-OS 10.x a new feature Block Private Key Export is introduced.
- When Panorama on PAN-OS 10.x context switches to firewall on PAN-OS 9.x or 8.x, it causes discrepancies in the certificate import of private key, since the firewall is missing the new functionality.
Resolution
- Login directly to the firewall and upload the certificate (No context switching through Panorama).
- Upload the certificate with private key into the Panorama and then push it to the firewall(s).
- Upgrade firewall to 10.x to use context switching through Panorama.