How to import CA Cert via CLI

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

How to import CA Cert via CLI

L0 Member

My Panorama CA Cert expired and I cannot renew it via GUI because I cannot get to the GUI interface. How can I do it via CLI.

2 REPLIES 2

L4 Transporter

Hello @Benny.Rosa 

I have not tested these commands myself. I have not had the opportunity or the need to do so, but there is the possibility to do it by CLI.

 

admin@PA-XXXX> scp import certificate from
<value> Source (username@host:path)

admin@PA-XXXX> scp import certificate from

 

 

scp import certificate from <value> remote-port <1-65535> source-ip <ip/netmask> certificate-name <value> passphrase <value> format <pkcs12|pem>

scp import private-key from <value> remote-port <1-65535> source-ip <ip/netmask> passphrase <value> certificate-name <value> format <pkcs12|pem>

scp import keypair from <value> remote-port <1-65535> source-ip <ip/netmask> passphrase <value> certificate-name <value> format <pkcs12|pem>

tftp import certificate from <value> file <value> remote-port <1-65535> source-ip <ip/netmask> certificate-name <value> passphrase <value> format <pkcs12|pem>

tftp import private-key from <value> file <value> remote-port <1-65535> source-ip <ip/netmask> passphrase <value> certificate-name <value> format <pkcs12|pem>

tftp import keypair from <value> file <value> remote-port <1-65535> source-ip <ip/netmask> passphrase <value> certificate-name <value> format

 

You can do it from a TFTP server or from a SFTP server

 

Goog luck

 

Cheers

High Sticker

Cyber Elite
Cyber Elite

Hi @Benny.Rosa ,

 

Here is an article that describes your issue with a couple of fixes -> https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000Cli0CAC.

 

Notice that Option 2 has the CLI commands to generate a new certificate.

 

Thanks,

 

Tom

Help the community: Like helpful comments and mark solutions.
  • 2638 Views
  • 2 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!