03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For example: start with minimal security permissions, then run a test and check<br />

which permissions are failing. Add the necessary permissions to the policy file<br />

then run your test again for re-checking. Repeat these steps until you have all the<br />

necessary permissions set. Note that this will only help you to identify the<br />

persmissions you have to set, it will not help to find the right settings for the<br />

permissions.<br />

<strong>Security</strong> Tools for Java<br />

The Java 2 SDK provides three tools that assist in the deployment of the new<br />

security features.<br />

For more information refer to the documents under the Java 2 SDK directory in<br />

/docs/tooldocs/.<br />

Key and certificate management tool<br />

keytool is a key and certificate management utility, similar to <strong>IBM</strong>’s ikeyman<br />

utility. The major difference is that the keytool is only a command line utility<br />

without graphical interface; but keytool allows to create certificates for any<br />

Distinguished Name (dn) that you require; unlike ikeyman which has a<br />

predefined dn schema. For online help, launch the keytool with the -help option:<br />

keytool -help<br />

Policy file editing tool<br />

The policytool with a nice GUI assists the user in specifying, generating, editing,<br />

exporting or importing a security policy. The application can be launched from the<br />

command line with the policytool command.<br />

The policytool utility depends on the keystore that is managed by keytool.<br />

JAR signing and Verification tool<br />

The jarsigner tool can be used to digitally sign Java archives (JAR files) and to<br />

verify such signetures. The jarsigner tool can be used from the command-line by<br />

isuing the jarsigner command.<br />

The jarsigner tool depends on the keystore that is managed by keytool.<br />

8.5.1 Java 2 security in <strong>WebSphere</strong><br />

The <strong>WebSphere</strong> Application Server V5 also supports the Java 2 security in order<br />

to harden the Java Virtual Machine runtime environment.<br />

By default, <strong>WebSphere</strong> Application Server installs a Java 2 <strong>Security</strong>Manager and<br />

Java 2 <strong>Security</strong> is enforced via a default set of policies. The default policies are<br />

those recommended in the J2EE Platform specification.<br />

Chapter 8. Programmatic security 203

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!