# Use Multiple Client Certificates in a Single Project

**URL:** <https://forum.katalon.com/t/use-multiple-client-certificates-in-a-single-project/39218>\
**Category:** Feature Request\
**Tags:** feature-request, katalon-studio\
**Created:** [January 29, 2020, 4:37pm UTC](https://forum.katalon.com/t/use-multiple-client-certificates-in-a-single-project/39218 "2020-01-29T16:37:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RTQ](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@RTQ](https://forum.katalon.com/u/RTQ)\
**Post date:** [January 29, 2020, 4:37pm UTC](https://forum.katalon.com/t/use-multiple-client-certificates-in-a-single-project/39218/1 "2020-01-29T16:37:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![michael.marshall](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/michael.marshall/32/23869_2.png) [@michael.marshall](https://forum.katalon.com/u/michael.marshall)\
**Post date:** [December 3, 2024, 3:49am UTC](https://forum.katalon.com/t/use-multiple-client-certificates-in-a-single-project/39218/2 "2024-12-03T03:49:38Z")

</div>

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

```auto
// 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
	}
}

```
