Coder Social home page Coder Social logo

jal-tw / paloalto-panos-with-curl Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Use CURL to Config on PaloAlto PanOS (including Panorama)

License: BSD 2-Clause "Simplified" License

Shell 100.00%
certificate paloaltonetworks shell-script pan-os

paloalto-panos-with-curl's Introduction

paloalto-panos-with-curl

This repository will collect all I wrote or tested API call via Panorama, due to Panorama different with PAN-OS

  • CURL Version 8.1.1

  • PAN-OS Version 11.0.2

    certificate-renewal-via-panorama.sh

    Automated Palo Alto PAN-OS Certificate Renewal with CURL

    Rather than manually replacing certificates in PAN-OS I used this playbook to automate the process.
    This is useful when ustilising Let's Encrypt certificates which are only valid for 90 days.
    
    • Before start, please change your own variable in sh file first. The playbook performs the following.

      • Prepared certificate file The private key and certificate have to be in the same file for this to work

        (you can use 'cat private.pem fullchain.pem > jal.tw.full' to combine the certificate and the key in one file).

        NOTE: PanOS requires that you specify a password for the private key, even if the private key is not encrypted with a password.

      • Work on Panorama

        a) Rename current used certificate name

        Due to API can't upload and overwrite the certificate file in one step.

        b) Upload certificate to Panorama

        c) Update SSL TLS Service Profile in Panorama

        d) Delete old certificate in Panorama

      • Work on firewall template

        a) Rename current used certificate name in device template

        b) Upload certificate to device template

        c) Update SSL TLS Service Profile in device template

        d) Delete old certificate in device template

      • Repeat step 3 on different device template

      • Commit only change by username

      • Push to device (device stack)

paloalto-panos-with-curl's People

Contributors

jal-tw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.