> Source: [sk64520](https://support.checkpoint.com/results/sk/sk64520)

# sk64520 - Generating Wildcard Server Certificates for Mobile Access Hostname Translation (HT)

| Property | Value |
|----------|-------|
| Solution ID | sk64520 |
| Date Created | 2011-07-22 |
| Last Modified | 2020-07-07 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Solution

When configuring a Mobile Access / SSL VPN gateway to use Hostname Translation (HT), a wildcard server certificate is required. This article explains how to generate such a certificate, whether self-signed or issued by a 3rd-party CA, and for several gateway versions.

**Requesting a 3rd-party Wildcard Server Certificate**

A wildcard server certificate must be signed as follows, assuming that 'sslvpn.example.com' is the gateway's Fully-Qualified Domain Name (FQDN):

1. The *Subject DN* field must begin with **CN=sslvpn.example.com**,

2. The *Alternate Name* field must have two entries of type ***DNS*** . The first one must be of the form **sslvpn.example.com** . The other one must be of the form **\*.sslvpn.example.com**.

In order to use the gateway's *csr_gen*script for issuing a certificate of the above form, modify its configuration file, as follows:

1. Backup and edit the file **$CVPNDIR/conf/openssl.cnf** (R66.x, R71.x, R75.10) or **$CPDIR/conf/openssl.cnf** (R75.20 and higher).
2. In the **\[ req \]** section, uncomment the line **req_extensions = v3_req**.
3. In the \[ v3_req \] section, add the following line:   
   **subjectAltName=DNS:\<FQDN\>,DNS:\*.\<FQDN\>** **For example: subjectAltName=DNS:sslvpn.example.com,DNS:\*.sslvpn.example.com**
4. Save the file, run csr_gen and create the CSR. When asked for CommonName (CN) you should enter "**sslvpn.example.com** ".  
   To verify that the CSR was generated properly, use the following command: **openssl req -in requestFile.csr -text**   
   If you have R75.x you should use **cpopenssl** instead.
5. After generating the CSR, use the backup to restore the openssl.cnf file to its previous state.
6. Submit the CSR file to your 3rd-party CA vendor in order to receive the signed server certificate.  
   **Note:** There isn't a standard submission procedure.  
   * Some CAs have a Web form for submitting the CSR file.
   * Others have a Web form with individual certificate fields. Those can't be used with the above procedure since our gateway generates a CSR file.
   * Some CAs receive the CSR file by email.
7. **For HT support:** Make sure the HT configuration's *SSL VPN FQDN* field (prior to R75.x) or *portal URL* (R75.x and higher) are defined as **sslvpn.example.com**.
8. **For mobile device support:** After installing the signed server certificate, please refer to the Admin Guide of your gateway version and to [sk62884](http://supportcontent.checkpoint.com/solutions?id=sk62884) to find out if and how the 'certificate_signing_utility' must be used.

**Generating a Self-Signed Wildcard Server Certificate**

**For R66.1 and R71.x gateways** , the script for generating a self-signed server certificate does not support custom values in the *Alternate Name* field. Instead, a certificate with a wildcard Subject DN can be generated using the gateway command:**GenerateAndInstallCert -w sslvpn.example.com**

**For R75.x and higher gateways** , use either the **cpopenssl** command directly, or a GUI front-end such as *XCA* (<http://xca.sourceforge.net/>) in order to generate the certificate.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
