6.3 Ensure CallbackHandler is used to access private keys in keystore files

Information

Use CallbackHandler to retrieve user password and for accessing private keys in keystore files.Using the CallbackHandler method to retrieve a user's password and access private keys in keystore files ___ (state benefit).Do not use plain text passwords in user and keystore fields for WebServices security.

Using CallbackHandler to retrieve user and keystore passwords is more secure than specifying plaintext passwords in

Liberty configuration

.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Ensure that the passwords are not configured in the wsSecurityClient and wsSecurityProvider elements in ${server.config.dir}/configDropins/overrides/<any file name>.xml For more information, see the References section."Implement the callbackhandler method. For more information, see the References section."

<wsSecurityClient id="default" ws-security.callback-handler="com.myCompany.myExample.myCBH" ...>
...
</wsSecurityClient>
<wsSecurityProvider id="default" ws-security.callback-handler="com.myCompany.myExample.myCBH" ...>
...
</wsSecurityProvider>

See Also

https://workbench.cisecurity.org/benchmarks/7724

Item Details

Category: IDENTIFICATION AND AUTHENTICATION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|IA-5(1), 800-53|SC-28, 800-53|SC-28(1), CSCv7|14.8

Plugin: Unix

Control ID: 50562216401d931f7e586f74fa8f2e408c82d1b53f12d035a269bc2fa8e5132b