OpenSSL CommandsIntermediate

OpenSSL CSR Generation

Create Certificate Signing Requests with OpenSSL. Generate CSRs with SANs using config files and command line.

Interactive Demo
CSR & Self-Signed

OpenSSL CSR & Certificate Commands

Create certificate signing requests and self-signed certificates

Select Command:

Command:

$ openssl req -new -key private.key -out request.csr
Step 0 of 5

Click "Run Command" to create a CSR

Key Insight

CSRs are the bridge between your private key and a CA-signed certificate. Master the subject fields, SANs, and automation techniques for efficient certificate management.

Read Full Guide

Quick Reference

CSR with existing key:
openssl req -new -key key.pem -out csr.pem
CSR + new key together:
openssl req -new -newkey rsa:2048 -keyout key.pem -out csr.pem
Self-signed certificate:
openssl req -new -x509 -key key.pem -out cert.pem -days 365
Self-signed + new key:
openssl req -new -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem