Certificate and private key import to Panorama fails

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Palo Alto Networks Approved
Palo Alto Networks Approved
Community Expert Verified
Community Expert Verified

Certificate and private key import to Panorama fails

L0 Member

Does anyone experience issues with importing certificate and key in pem format using panos_certificate_import? I can import it without any issues via GUI. I have exported the cert from panorama and trying to re-import it but that fails.


│ Error: Import of gp-cert failed. Failed to extract certificate 

│ with module.panorama_gpvpn_gateway["gpvpn"].panos_certificate_import.gp,
│ on modules/panorama_gpvpn_gateway/gp.tf line 11, in resource "panos_certificate_import" "gp":
│ 11: resource "panos_certificate_import" "gp" {





L5 Sessionator

Hi @Piotr_Szlenk, we probably need to see the code using the panos_certificate_import resource to understand how it is being used before commenting on what might be going wrong, are you able to supply this, sanitized as required?

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!