如何将证书加载到 Panorama API

如何将证书加载到 Panorama API

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


Objective


本文详细说明了将证书上传到模 Panorama 板并将其分配给模板的详细信息。

Environment


  • Panorama
  • SSL 证书
  • 模板环境


Procedure


  1. 上传文件(文件具有证书和密钥组合)
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. 上传证书后获取证书:
/api/?type=config&action=get&xpath=/config/panorama/certificate/entry[@name='<cert_name>']&key=<auth_key>
 
  1. 将证书放入模板中:
/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=zh_CN&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language