Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Check the man page for openssl. req is PKCS#10 X.509 Certificate Signing Request (CSR) Management. That means that you can't use req to work with something other than CSRs. Depending on what you really want to do, commands like passwd, pkey or rand may fit the bill better. Commented Jul 19, 2013 at 18:07
  • Thanks, what I want to know is what will produce the exact same kind of key as the req above. I think it is something like openssl genrsa -out /etc/ssl/private/mycompany.com.key 2048, just not sure? Commented Jul 19, 2013 at 18:10
  • @Michael sorry, I should point out that the req in the question does produce a key because of the -keyout - that might have not been clear enough in the question. Commented Jul 19, 2013 at 18:17
  • Thanks for the post. I found many usefull commands to generate csr, key and self-signed crt on the fly with one command in non-interactive mode. Here is the link - sysadm.pp.ua/internet/pound-apache-nginx-ssl-setup.html ,maybe if would be usefull Commented Jan 13, 2015 at 20:29
  • @aprogrammer - thanks for the link, the commands on that page are useful, but the rest of the page is in Russian. Here's the Google translated URL for that page: translate.google.com/…. Commented Jan 13, 2015 at 22:48