13.5. web.xml
13.5.1. Removing Unused Interfaces from web.xml (CA Only) Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Several legacy interfaces (for features like bulk issuance or the policy framework) are still included in the CA's
web.xml
file. However, since these features are deprecated and no longer in use, then they can be removed from the CA configuration to increase security.
- Stop the CA.
systemctl stop pki-tomcatd@instance_name.service
# systemctl stop pki-tomcatd@instance_name.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow OR (if usingnuxwdog watchdog
)systemctl stop pki-tomcatd-nuxwdog@instance_name.service
# systemctl stop pki-tomcatd-nuxwdog@instance_name.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the web files directory for the CA. For example:
cd /var/lib/pki/instance_name/ca/webapps/ca/WEB-INF
# cd /var/lib/pki/instance_name/ca/webapps/ca/WEB-INF
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Back up the current
web.xml
file.cp web.xml web.xml.servlets
# cp web.xml web.xml.servlets
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit the
web.xml
file and remove the entire<servlet>
entries for each of the following deprecated servlets:- caadminEnroll
- cabulkissuance
- cacertbasedenrollment
- caenrollment
- caProxyBulkIssuance
For example, remove thecaadminEnroll
servlet entry:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - After removing the servlet entries, remove the corresponding
<servlet-mapping>
entries.<servlet-mapping> <servlet-name> caadminEnroll </servlet-name> <url-pattern> /admin/ca/adminEnroll </url-pattern> </servlet-mapping>
<servlet-mapping> <servlet-name> caadminEnroll </servlet-name> <url-pattern> /admin/ca/adminEnroll </url-pattern> </servlet-mapping>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove three
<filter-mapping>
entries for an end-entity request interface.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the CA again.
systemctl start pki-tomcatd@instance_name.service
# systemctl start pki-tomcatd@instance_name.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow OR (if usingnuxwdog watchdog
)systemctl start pki-tomcatd-nuxwdog@instance_name.service
# systemctl start pki-tomcatd-nuxwdog@instance_name.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow