Skip to content

PKI Server Webapp CLI

Endi S. Dewata edited this page Apr 23, 2023 · 6 revisions

Overview

PKI 10.7 provides a CLI to manage webapps on PKI server.

Listing Webapps

$ pki-server webapp-find
  Webapp ID: ROOT
  Path: /
  Descriptor: /etc/pki/pki-tomcat/Catalina/localhost/ROOT.xml
  Document Base: /usr/share/pki/server/webapps/ROOT

  Webapp ID: ca
  Path: /ca
  Descriptor: /etc/pki/pki-tomcat/Catalina/localhost/ca.xml
  Document Base: /usr/share/pki/ca/webapps/ca

  Webapp ID: pki
  Path: /pki
  Descriptor: /etc/pki/pki-tomcat/Catalina/localhost/pki.xml
  Document Base: /usr/share/pki/server/webapps/pki

Deploying Webapp

To deploy the ROOT webapp:

$ pki-server webapp-deploy \
    --descriptor /usr/share/pki/server/conf/Catalina/localhost/ROOT.xml \
    ROOT

To deploy the non-ROOT webapp:

$ pki-server webapp-deploy \
    --descriptor /usr/share/pki/server/conf/Catalina/localhost/pki.xml \
    pki

Undeploying Webapp

$ pki-server webapp-undeploy pki
Clone this wiki locally