Integration Server 10.5 | Built-In Services Reference Guide | Security Folder | Summary of Elements in this Folder | pub.security:clearKeyAndChain
 
pub.security:clearKeyAndChain
WmPublic. Clears the set key and certificate chain and reverts back to the default key and certificate chain for the subsequent set of invoked services.
Input Parameters
None.
Output Parameters
None.
Usage Notes
The following scenario describes a situation in which you would use the pub.security.keystore:setKeyAndChain and pub.security:clearKeyAndChain services.
Company A has a webMethods Integration Server with one certificate chain. Company A wants to start trading with two new companies: Company B and Company C. Due to explicit business decisions, both Company B and Company C require that secure requests to their servers use certificates issued by their company's certificate authority. Company A now has three certificate sets that it must manage: one for connections to B, one for connections to C, and one for all other requests. Below is a high-level process flow of what Company A would do if documents needed to be forwarded to companies B, C, and D (some arbitrary partner without the stringent security).
Assume all network communication is done using HTTPS. Documents are sent to the companies in the following order: Company D, Company B, Company C, Company D. All data transfers make use of the pub.client:http service.
1. Invoke pub.client:http to send data to Company D.
2. Invoke pub.security.keystore:setKeyAndChain using the key and certificate chain for Company B.
3. Invoke pub.client:http to send data to Company B.
4. Invoke pub.security.keystore:setKeyAndChain using the key and certificate chain for Company C.
5. Invoke pub.client:http to send data to Company C.
6. Invoke pub.security:clearKeyAndChain to revert back to the default key and certificate chain for Company A's server.
7. Invoke pub.client:http to send data to Company D.
See Also
pub.security.keystore:setKeyAndChain