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

# sk73080 - '$CVPNDIR/bin/csr_gen cp_csr' command and '$CPDIR/bin/cpopenssl req -new' command might fail on Gaia OS with "problems making Certificate Request" error

| Property | Value |
|----------|-------|
| Solution ID | sk73080 |
| Date Created | 2012-05-06 |
| Last Modified | 2018-08-08 |
| Technical Level | Advanced |
| Products | Security Gateway, Security Management Server |
| Versions | R82.10, R82, R81.20, R82.20 |
| OS | Gaia |

## Symptoms

- * '**`$CVPNDIR/bin/csr_gen cp_csr`**' command on Gaia OS fails with:

  ```
  
  16532:error:0D06407A:asn1 encoding routines:a2d_ASN1_OBJECT:first num too large:a_object.c:108: 
  16532:error:0B08C077:x509 certificate routines:X509_ATTRIBUTE_create_by_txt:invalid field name:x509_att.c:252:name=challengePassword_min 
  
  operation failed.  exit code: 1
  ```

* '**`$CPDIR/bin/cpopenssl req -new -out <CERT.CSR> -keyout <KEYFILE.KEY> -config $CPDIR/conf/openssl.cnf`**' command on Gaia OS fails with:

  ```
  
  3475:error:0D06407A:asn1 encoding routines:a2nd_ASN1_OBJECT:first num too large:a_object.c:108:
  3475:error:0B08C077:x509 certificate routes:509_ATTRIBUTE_create_by_txt:invalid field name:x509_att.c252:name=challengePasswrod_min 
  ```

* *Complete example for '`$CVPNDIR/bin/csr_gen cp_csr`' command :*

  ```
  
  [Expert@fwpoc1]# cd $CVPNDIR/bin 
  [Expert@fwpoc1]# ./csr_gen cp_csr 
  ./csr_gen : Creating Key and Certificate Signing Request based on the following information : 
          Key Size : rsa:1024 
          Number of days to certify the certificate for : 365 
          CSR output filename : cp_csr.csr 
          Private Key output filename : cp_csr.key 
          OpenSSL config file : /opt/CPshrd-R75.40/conf/openssl.cnf 
  Do you want to continue (y/n)? [y] : y 
  
  Do you want the private key file to be encrypted (recommended, but you'll need to remember the password till you install the signed certificate in Connectra) (y/n)? [y] : y 
  
  ./csr_gen : Executing <cpopenssl req -new -newkey rsa:1024 -out cp_csr.csr -keyout cp_csr.key -days 365 -config /opt/CPshrd-R75.40/conf/openssl.cnf>
  Generating a 1024 bit RSA private key 
  .......++++++ 
  ...........++++++ 
  writing new private key to 'cp_csr.key' 
  Enter PEM pass phrase: 
  Verifying - Enter PEM pass phrase: 
  ----- 
  problems making Certificate Request 
  16532:error:0D06407A:asn1 encoding routines:a2d_ASN1_OBJECT:first num too large:a_object.c:108: 
  16532:error:0B08C077:x509 certificate routines:X509_ATTRIBUTE_create_by_txt:invalid field name:x509_att.c:252:name=challengePassword_min 
  
  operation failed.  exit code: 1
  ```

## Cause

The file */usr/local/ssl/openssl.cnf* contains incorrect configuration definition.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# 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
