# useCustomKeystore

> Enable application signing with a custom keystore.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static bool useCustomKeystore { get; set; }
```

### Remarks

When enabled, the Android application is signed with the key specified in [keyaliasName](/engine/6000.5/script-reference/unityeditor/playersettings/android/keyaliasname.md) from the keystore specified in [keystoreName](/engine/6000.5/script-reference/unityeditor/playersettings/android/keystorename.md). When disabled, the application is signed with a debug key.

The following code example demonstrates how to enable application signing with a custom keystore and configure keystore-specific settings.

### Examples

```csharp
using UnityEngine;
using UnityEditor;

public class CustomKeystoreSample : MonoBehaviour
{
    [MenuItem("Build/Custom Keystore Sample")]
    public static void UseCustomKeystoreSample()
    {
        // Set useCustomKeystore value to true
        PlayerSettings.Android.useCustomKeystore = true;
        // Log the useCustomKeystore value
        Debug.Log($"useCustomKeystore: {PlayerSettings.Android.useCustomKeystore}");

        // Sign in settings
        // Set keyaliasName
        PlayerSettings.Android.keyaliasName = "keyalias";
        // Log the keyalias name
        Debug.Log($"keyaliasName: {PlayerSettings.Android.keyaliasName}");

        // Set keyaliasPass
        PlayerSettings.Android.keyaliasPass = "keyAliasPass";
        // Log the keyalias password
        Debug.Log($"keyaliasPass: {PlayerSettings.Android.keyaliasPass}");

        // Set keystoreName
        PlayerSettings.Android.keystoreName = "keystoreName";
        // Log the keystore name
        Debug.Log($"keystoreName: {PlayerSettings.Android.keystoreName}");

        // Set keystorePass
        PlayerSettings.Android.keystorePass = "keyStorePass";
        // Log the keystore password
        Debug.Log($"keystorePass: {PlayerSettings.Android.keystorePass}");
    }
}
```
