I run this command to generate a CSR and a new key with openssl:
openssl req -new -nodes -days 9000 -config /etc/ssl/openssl.cnf -out /etc/ssl/certs/mycompany.com.csr -keyout /etc/ssl/private/mycompany.com.key
I can't figure out what command I can run to generate just the key and not the CSR?
reqis PKCS#10 X.509 Certificate Signing Request (CSR) Management. That means that you can't usereqto work with something other than CSRs. Depending on what you really want to do, commands likepasswd,pkeyorrandmay fit the bill better.reqabove. I think it is something likeopenssl genrsa -out /etc/ssl/private/mycompany.com.key 2048, just not sure?reqin the question does produce a key because of the-keyout- that might have not been clear enough in the question.