Chapter 12. Editing Configuration in the CS.cfg File
292
a. Create a temporary directory and copy the CGI scripts into it.
mkdir /tmp/sow
cp /usr/share/pki/tps/cgi-bin/sow/*.cgi /tmp/sow
b. Create a temporary directory and copy the CGI scripts into it.
c. Edit the CGI files, using the appropriate server root for the TPS instance. For example:
pushd /tmp/sow
for i in `ls *.cgi`; do
sed -i 's/\[SERVER_ROOT\]/\/var\/lib\/pki-tps-old/g' $i
done
cp -f *.cgi /var/lib/pki-tps-old/cgi-bin/sow
popd
d. Remove the temporary directory.
rm -f /tmp/sow
e. Set the proper file owner and permissions for the files.
chown pkiuser: /var/lib/pki-tps-old/cgi-bin/sow/*.cgi
chmod 755 /var/lib/pki-tps-old/cgi-bin/sow/*.cgi
6. If the security officer scripts have been customized, then the files need to be updated so that they
properly run under
mod_perl::PerlRun
instead of
mod_cgi
.
The primary change is to replace any relative file paths with full paths. For example, replace this
line:
require "
./cfg.pl
"
With:
require "
/var/lib/pki-tps/cgi-bin/sow/cfg.pl
"
Other changes may be needed to eliminate warnings in the error_log.
7. Create a new HTTP init.d file for the instance. THe easiest way to do this is to create a temporary
TPS instance, copy its init.d file, and then edit it to point to the original instance.
a. Run
pkicreate
to create a TPS instance.
b. Copy the new instance's init.d file.
cp /etc/init.d/pki-temp-tps /tmp/pki-tps-old
c. Replace the new instance name with the original TPS instance name. For example:
sed -i 's/pki-temp-tps/pki-tps-old/g' /tmp/pki-tps-old
Содержание CERTIFICATE SYSTEM 8.0 - ADMINISTRATION
Страница 1: ...Red Hat Certificate System 8 0 Admin Guide Publication date July 22 2009 updated on March 25 2010 ...
Страница 42: ...20 ...
Страница 43: ...Part I Setting up Certificate Services ...
Страница 44: ......
Страница 190: ...168 ...
Страница 208: ...186 ...
Страница 223: ...Part II Additional Configuration to Manage CA Services ...
Страница 224: ......
Страница 256: ...234 ...
Страница 270: ...248 ...
Страница 280: ...258 ...
Страница 292: ...270 ...
Страница 293: ...Part III Managing the Subsystem Instances ...
Страница 294: ......
Страница 363: ...Managing RA Users 341 5 The user details page shows the person s UID full name email address and user SSL certificate ...
Страница 408: ...386 ...
Страница 438: ...416 ...
Страница 439: ...Part IV References ...
Страница 440: ......
Страница 503: ...Netscape Defined Certificate Extensions Reference 481 OID 2 16 840 1 113730 13 ...
Страница 504: ...482 ...
Страница 556: ...534 ...
Страница 564: ...542 ...