# Generate a self-signed certificate

To generate a self-signed certificate, navigate to **Infrastructure** > **Certificates**. Choose **Add** > **Generate self-signed certificate** from the ellipsis menu and specify the following options:

* **Name:** Type a name for this certificate. This field is mandatory.
* **Description**: An optional description.
* **Usage**: Specify whether the certificate should be used for RAS Secure Gateways or HALB, or both. This selection is mandatory.
* **Key size:** The certificate key size, in bits. Here you can select from the predefine values. The default is 2048 bit, which is the minimum required length according to current industry standards.
* **Expire in**: The certificate expiration date.
* **Country code**: Select your country.
* **Full state or province:** Your state or province info.
* **City:** City name.
* **Organization:** The name of your organization.
* **Organization unit:** Organizational unit.
* **E-mail:** Your email address. This field is mandatory.
* **Common name:** The Common Name (CN), also known as the Fully Qualified Domain Name (FQDN). This field is mandatory.
* **Subject Alternative Names:** Add one or more subject alternative names (SANs). Note that because mobile Parallels Client don't support the Subject Alternative Name field, it is recommended to choose a common name that most mobile devices will be using.

Click **Generate** to generate the certificate. When done, the certificate will appear in the **Certificates** list with the **Status** column indicating **Self-signed**.

To view and modify certificate properties:

1. In the **Infrastructure** > **Certificates** view, click the certificate name.
2. In the right pane, review the certificate properties in the **Information** section.
3. In **Actions** section, you can enable or disable the certificate. You can also [export a certificate to a file](https://docs.parallels.com/landing/ras-mp-guide/v19-en-us/infrastructure/certificates/export-a-certificate-to-a-file). If you wish to delete the certificate, click **Delete**.
4. To modify some of the certificate properties, click **Properties** in the middle pane.
5. Click **Edit** in the upper left-hand corner to modify the settings if needed. You can change the certificate name and description and you can also change whether the certificate should be used for Gateways, HALB, or both.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-mp-guide/v19-en-us/infrastructure/certificates/generate-a-self-signed-certificate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
