Back to Demos
47/52
OpenSSL CommandsIntermediate
OpenSSL CSR Generation
Create Certificate Signing Requests with OpenSSL. Generate CSRs with SANs using config files and command line.
Interactive Demo

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 GuideQuick Reference
CSR with existing key:
openssl req -new -key key.pem -out csr.pemCSR + new key together:
openssl req -new -newkey rsa:2048 -keyout key.pem -out csr.pemSelf-signed certificate:
openssl req -new -x509 -key key.pem -out cert.pem -days 365Self-signed + new key:
openssl req -new -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem