Generate CSR with single command By admin on April 5, 2011 in Apache Here’s a single command to generate a new key and CSR: openssl req -nodes -newkey rsa:2048 -keyout mydomain.key -out mydomain.csr 1 openssl req -nodes -newkey rsa:2048 -keyout mydomain.key -out mydomain.csr Related posts: View Contents Of SSL Certificate Self-signed cert for Apache Convert SSL cert from PK12 to PEM Booting to Single User or Runlevel OpenSSL Upgrade