Este conteúdo não está disponível no idioma selecionado.
13.5. web.xml
13.5.1. Removing Unused Interfaces from web.xml (CA Only) Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
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.serviceCopy 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.serviceCopy 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-INFCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Back up the current
web.xmlfile.cp web.xml web.xml.servlets
# cp web.xml web.xml.servletsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit the
web.xmlfile and remove the entire<servlet>entries for each of the following deprecated servlets:- caadminEnroll
- cabulkissuance
- cacertbasedenrollment
- caenrollment
- caProxyBulkIssuance
For example, remove thecaadminEnrollservlet 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.serviceCopy 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.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow