Import files to a firewall via Panorama. First import the
file to Panorama, then run a request batch upload-install op
command:
curl -X GET "http://<panorama>/api/?key=apikey&type=op&cmd=<request><batch><anti-virus><upload-install><uploaded-file><your-file-name-here></uploaded-file><devices><serialnumber></devices></upload-install></anti-virus></batch></request>"
Import a certificate or key by specifying the type of the certificate
or key file using the
category parameter.
(category=certificate
orcategory=keypair
only) Specify these additional parameters for the certificate file and
keypair imports:
certificate-name—name of the certificate object on the
firewall
format—certificate
format,pkcs12 orpem
passphrase—required when including the certificate key
vsys—virtual system where the certificate object is
used. Ignore this parameter if the certificate is a shared object.
curl -X POST 'https://firewall/api?type=import&category=certificate&certificate-name=<certificate_name>&format=pkcs12 | pem&passphrase=text&vsys=<vsys>"