> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Generating a CSR Using OpenSSL on Apache, Nginx, and Heroku
- URL: https://blog.esadax.com/en/generating-a-csr-using-openssl-on-apache-nginx-and-heroku/
- Published: 2026-11-15T04:16:14.000Z
- Updated: 2026-11-15T04:16:14.000Z
- Author: Esadax 
- Tags: #tr-faq-06-ssl-generating-csr-on-apache-opensslmodsslnginx-heroku, #en, #mdx-imported, FAQ

To generate a Certificate Signing Request (CSR) for an SSL certificate using OpenSSL, follow these steps:

1. **OpenSSL Installation Check**: Ensure OpenSSL is installed by running `dpkg -l 'openssl*'`. If it's not found, contact your hosting provider.
  - Replace `bare_ec.key` and `bare_ec.csr` with your desired filenames.
  - `-subj` specifies the subject details, including organization and domain.
  - `-addext san:DNS.1=...` adds Subject Alternative Names (SANs) for multi-domain coverage.
2. **Activate SSL Certificate**: Use the CSR content provided by your CA (Certificate Authority) to complete the certificate application.

**Verify CSR Content**: Open the generated CSR file to ensure it starts and ends with the correct tags:

```bash
cat bare_ec.csr

```

The output should begin with `-----BEGIN CERTIFICATE REQUEST-----` and end with `-----END_CERTIFICATE_REQUEST-----`.

**Generate CSR with Subject and SANs**:

```bash
openssl req -new -nodes -keyout bare_ec.key -out bare_ec.csr \
-subj /DC=US/ST=WA/L=Seattle/O=Esadax Inc./OU=Organization/CN=esadax.com \
-addext san:DNS.1=esadax.com,DNS.2=www.esadax.com

```