Ansible PFX Cert Upload not adding key

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ansible PFX Cert Upload not adding key

L2 Linker

I'm using the Ansible module to upload a certificate to a Template:

 

- name: Import PFX certificate to Template
  paloaltonetworks.panos.panos_import:
   provider: '{{ provider }}'
   template: 'my template'  
   category: 'certificate'
   certificate_name: 'my_test_cert'
   format: 'pkcs12'
   filename: 'mydomain.pfx'
   passphrase: 'vndfjgo7854wy8pt74e98'

Upload is fine ("msg": "okey dokey") but when I look in the webui its not displaying the "key" check box which means I can't use it in a Decryption rule:

SimonT_0-1689057360119.png

 

If I upload the cert manually via the webui then it works as expected:

SimonT_1-1689057397493.png

 

PAN-OS 10.2.4-h3
ansible-playbook [core 2.15.1]
python version = 3.9.1
paloaltonetworks.panos 2.16.0

1 accepted solution

Accepted Solutions

L2 Linker

switched to keypair and its now working:

 category: 'keypair'

😉

View solution in original post

1 REPLY 1

L2 Linker

switched to keypair and its now working:

 category: 'keypair'

😉

  • 1 accepted solution
  • 1781 Views
  • 1 replies
  • 0 Likes
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!