openssl req -new -newkey rsa:2048 -nodes -keyout server-dev.key -out server-dev.csr EXAMPLE:
$ openssl req -new -newkey rsa:2048 -nodes -keyout server-dev.key -out server-dev.csr Generating a RSA private key ......................................+++++ ............................................................................................+++++ writing new private key to 'server-dev.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]: US State or Province Name (full name) [Some-State]: California Locality Name (eg, city) []: San Francisco Organization Name (eg, company) [Internet Widgits Pty Ltd]: CompanyX Organizational Unit Name (eg, section) []: CompanyX IT Common Name (e.g. server FQDN or YOUR name) []: api-dev.companyx.com Email Address []: itsupport@companyx.com Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: <blank> An optional company name []: <blank> $ ls -l total 16 -rw-r--r-- 1 llac staff 1025 Jun 9 12:16 server-dev.csr -rw------- 1 llac staff 1704 Jun 9 12:15 server-dev.key $ cat server-dev.csr -----BEGIN CERTIFICATE REQUEST----- MIICvTCCAaUCAQAZdU72EZYBILFNQ6CDaaMti2rN9Ctt <REMOVED> gn+RxwGz4XAPjBzp69qtCnBcOu1/0WVeRdqPYZNc5XU7 -----END CERTIFICATE REQUEST----- $ cat server-dev.key -----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAAS <REMOVED> 6T7V+vZPcUIAT9uwPR6RSyw= -----END PRIVATE KEY-----
001115158

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.