# SetCertificate(string, string)

> Sets the certificate to use to sign the Universal Windows Platform application package.

## Definition

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

```csharp
public static bool SetCertificate(string path, string password)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The relative Asset path to the Certificate file (.pfx).**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The certificate password. If the certificate does not require a password, use an empty string.

### Returns

| Type                                                          | Description                                                                           |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if Unity successfully updates the certificate. Otherwise, returns false. |

### Remarks

In the Editor, Unity displays this under **Certificate** in [UWP Player Settings](/engine/6000.6/manual/platform-specific/windows-store/uwp-getting-started/class-player-settings-wsa.md).
