---
title: "Lacuna PSC command: **gen-cert**"
description: "Reference for the Lacuna PSC gen-cert command, which generates a self-signed certificate to sign OAuth tokens, with syntax for dotnet and Docker."
canonical: "https://docs.lacunasoftware.com/en-us/articles/psc/on-premises/tool/gen-cert"
locale: "en"
product: "PSC"
last_updated: "2026-07-14"
---

# Lacuna PSC command: **gen-cert**

## Name

`gen-cert` - Generates a self-signed certificate to sign OAuth tokens

## Syntax

```sh
dotnet Lacuna.Psc.Site.dll [settings] -- gen-cert <subject common name> <PFX file password> [<output PFX file path>] [<output CER file path>]
```

Or, on Docker:

```sh
docker run -i lacunasoftware/psc:1.2 [settings] -- gen-cert <subject common name> <PFX file password> [<output PFX file path>] [<output CER file path>]
```

The `settings` arguments are additional settings to overwrite settings from configuration files and environment variables,
for instance `--Section1:Name1=value1 --Section2:Name2=value2`.

## See also

* [Lacuna PSC command-line tool](https://docs.lacunasoftware.com/en-us/articles/psc/on-premises/tool)
