Wie man ein Zertifikat auf ein Panorama mit dem API

Wie man ein Zertifikat auf ein Panorama mit dem API

6572
Created On 02/19/21 23:43 PM - Last Modified 04/06/23 19:55 PM


Objective


In diesem Artikel wird das Hochladen eines Zertifikats in die und das Panorama Zuweisen zu einer Vorlage beschrieben.

Environment


  • Panorama
  • SSL Zertifikat
  • Vorlagenumgebung


Procedure


  1. Laden Sie die Datei hoch (Datei hat Zertifikat und Schlüssel kombiniert)
curl -k --form 'file=@<file_name>' 'https://<panorama>/api/?type=import&category=keypair&certificate-name=<cert_name>&format=pem&passphrase=<key_password>&key=<auth_key>'
 
  1. Holen Sie sich das Zertifikat, nachdem es hochgeladen wurde:
/api/?type=config&action=get&xpath=/config/panorama/certificate/entry[@name='<cert_name>']&key=<auth_key>
 
  1. Legen Sie das Zertifikat in eine Vorlage:
/api/?type=config&action=get&xpath=/config/devices/entry[@name='localhost.localdomain']/template/entry[@name='<template_name>']/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/certificate&element=<element from previous get action>&key=<auth_key>


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000HCwrCAG&lang=de&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language