# Generating a self-signed certificate

To generate a self-signed certificate, navigate to **Farm** > **Site** > **Certificates**. Click **Tasks** > **Generate self-signed certificate**. In the dialog that opens, 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.
* **Country code**: Select your country.
* **Expire in**: The certificate expiration date.
* **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.
* **Alternative names:** Specify one or more subject alternative names (SANs). Click the **\[...]** icon and then add one or mote DNS or IP addresses. Note that because Parallels Client for mobile devices doesn't support the SAN field, it's safest to set your common name to the name that most mobile devices will be using.

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

To view the certificate info, right-click it and choose **Properties**. In the dialog that opens, examine the properties and then click the **View certificate info** button to view the certificate trust information, details, certification path and the certificate status. You can also view the certificate info by right-clicking it and choosing **View certificate info**.


---

# 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-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/ssl-certificate-management/generating-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.
