Use Multiple Client Certificates in a Single Project

I am currently using Katalon Studio Enterprise 7.2.1 and I see the option in the project settings to add a single client certificate for the project. However, I need the ability to add multiple certificates and select them in a manner similar to the Profiles feature. Currently, we are using an in-house built plugin that allows the user to put cert information in variables in a Profile, then the plugin selects the correct cert for that test case/test suite, so we can test different users/permission levels. It would be really nice if Katalon offered this feature natively.

If anyone is looking, custom keyword to set client certs from profile:

// Added imports
import com.kms.katalon.core.webservice.setting.WebServiceSettingStore as WebServiceSettingStore

public class clientCerts {

	/**
	 * setClientCerts - Sets client certs from Profile
	 * @return a boolean to indicate whether this was successful
	 */
	@Keyword
	def setClientCerts() {

		def settingsStore = new WebServiceSettingStore()
		def settings = settingsStore.getClientCertificateSettings()
		settings.setKeyStoreFile(GlobalVariable.keyStore)
		settings.setKeyStorePassword(GlobalVariable.keyStorePassword)
		println "Using trustStore: ${settings.getKeyStoreFile()}"
		//println "Using trustStorePassword: ${settings.getKeyStorePassword()}"
		settingsStore.saveClientCerfiticateSettings(settings) // Note method is misspelled in class

		return true
	}
}
1 Like