PKI Server Webapp CLI - dogtagpki/pki GitHub Wiki

Overview

The pki-server webapp commands provides a mechanism to manage webapps on PKI server.

Listing Deployed Webapps

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

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

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

Availability: Since PKI 10.7.

Displaying Deployed Webapp

$ pki-server webapp-show ROOT
  Webapp ID: ROOT
  Path: /
  Descriptor: /var/lib/pki/pki-tomcat/conf/Catalina/localhost/ROOT.xml
  Document Base: /usr/share/pki/server/webapps/ROOT

Availability: Since PKI 11.5.

Deploying Webapp

To deploy ROOT webapp:

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

To deploy PKI webapp:

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

Availability: Since PKI 10.7.

Undeploying Webapp

$ pki-server webapp-undeploy pki

Availability: Since PKI 10.7.

⚠️ **GitHub.com Fallback** ⚠️