13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

You can also set the user registry to local OS or custom use registry. <strong>WebSphere</strong>Application Server has all three user registry entries predefined; you just have toprovide the right name for the script in line #5. You can list the user registryobjects by running the following command:$AdminConfig list UserRegistryThe result should look like the following example:(cells/appsrv01Node:security.xml#CustomUserRegistry_1)(cells/appsrv01Node:security.xml#LDAPUserRegistry_1)(cells/appsrv01Node:security.xml#LocalOSUserRegistry)Then use the name of one of the listed objects: LocalOSUserRegistry,LDAPUserRegistry_1, CustomUserRegistry_1.Since the condition is not performing an exact match, it is enough to provide onlypart of the name, for example: Local, LDAP, Custom.Creating a new SSL entryThe following script will create a new SSL entry. Note that the file names andpasswords are hard-coded in the file; you have to modify the values or changethe script to take parameters.Example: D-4 addSSLentry.jacl# new SSL entry in the SSL repertoire# setting the security objectset security_root [$AdminConfig list <strong>Security</strong>]# setting the variables for the entryset ssl_alias "new SSL entry"set ssl_clientAuthentication [list clientAuthentication false]set ssl_enableCryptoHardwareSupport [list enableCryptoHardwareSupport false]set ssl_keyFileFormat [list keyFileFormat "JKS"]set ssl_keyFileName [list keyFileName "c:\\was\\etc\\clientkeyfile.jks"]set ssl_keyFilePassword [list keyFilePassword "password"]set ssl_securityLevel [list securityLevel "HIGH"]set ssl_trustFileFormat [list trustFileFormat "JKS"]set ssl_trustFileName [list trustFileName "c:\\was\\etc\\trustkeyfile.jks"]set ssl_trustFilePassword [list trustFilePassword "password"]# this long line puts the attributes for the object together from the variablesand valuesset ssl_def [list $ssl_clientAuthentication $ssl_enableCryptoHardwareSupport$ssl_keyFileFormat $ssl_keyFileName $ssl_keyFilePassword $ssl_securityLevel$ssl_trustFileFormat $ssl_trustFileName $ssl_trustFilePassword]# defining the whole SSL objectset ssl_entry [list [list alias $ssl_alias] [list setting $ssl_def] ]518 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

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

Saved successfully!

Ooh no, something went wrong!