SSL/TLS Service Profile - Automate Certificate Replacement

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

SSL/TLS Service Profile - Automate Certificate Replacement

L1 Bithead

Hi,

 

I'm looking for an automatic way to update the certificate in a SSL/TLS Service Profile (which forms a part of the certificate replacement process). From what I can find, steps 1 and 2 can be automated with Ansible (or XML API), but I cannot find a way to do this for step 3.

 

  1. Import certificate (Ansible or XML API)
  2. Update Decryption Profile (Ansible)
  3. Update SSL/TLS Service Profile (?)

I had a look at Ansible, XML API and REST API, but I cannot find the relevant module/call. If possible, I would like to avoid SSH and keep it all HTTPS based.

Thanks for any help.

1 accepted solution

Accepted Solutions

L1 Bithead

Thanks for your reply, Steve.

 

I got this working using the panos_type_cmd module with the code below.

 

  - name: Update SSL TLS profile cert
    panos_type_cmd:
      provider: '{{ palo_provider }}'
      xpath: |
        /config/shared/ssl-tls-service-profile/entry[@name='PROFILE-NAME']
      element: |
        <certificate>{{ cert_name }}</certificate>

View solution in original post

3 REPLIES 3

Cyber Elite
Cyber Elite

Howdy there.

 

I am running decryption on my FW, and I do not have any SSL-TLS profile being referenced.

Can you kindly explain your configuration, where a SSL TLS profile is called in Decryption.
It would help us, to provide better support to you.

 

Please help out other users and “Accept as Solution” if a post helps solve your problem !

L1 Bithead

Thanks for your reply, Steve.

 

I got this working using the panos_type_cmd module with the code below.

 

  - name: Update SSL TLS profile cert
    panos_type_cmd:
      provider: '{{ palo_provider }}'
      xpath: |
        /config/shared/ssl-tls-service-profile/entry[@name='PROFILE-NAME']
      element: |
        <certificate>{{ cert_name }}</certificate>

L1 Bithead
  • 1 accepted solution
  • 3185 Views
  • 3 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!