You can modify ReadyAPI preferences from your Groovy scripts. The full list of available settings is in the ReadyAPI Javadoc.
You can use this script anywhere in ReadyAPI.
The following script uses the SoapUI.settings
property to set the keystore, and then posts the updated value to the log: