Skip to content

Commit

Permalink
Changed the RSA modulus from 1024 to 2048 bit in the examples.
Browse files Browse the repository at this point in the history
Since RSA with a 1024 bit modulus is rather decpredated today, this commit
changes the size of the modulus from 1024 to 2048 bit in all examples for the
req command.
  • Loading branch information
eriktews committed Apr 1, 2015
1 parent 0f2596a commit 2b18148
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/apps/req.pod
Expand Up @@ -506,16 +506,16 @@ Examine and verify certificate request:

Create a private key and then generate a certificate request from it:

openssl genrsa -out key.pem 1024
openssl genrsa -out key.pem 2048
openssl req -new -key key.pem -out req.pem

The same but just using req:

openssl req -newkey rsa:1024 -keyout key.pem -out req.pem
openssl req -newkey rsa:2048 -keyout key.pem -out req.pem

Generate a self signed root certificate:

openssl req -x509 -newkey rsa:1024 -keyout key.pem -out req.pem
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out req.pem

Example of a file pointed to by the B<oid_file> option:

Expand All @@ -531,7 +531,7 @@ expansion:
Sample configuration file prompting for field values:

[ req ]
default_bits = 1024
default_bits = 2048
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
Expand Down Expand Up @@ -572,7 +572,7 @@ Sample configuration containing all field values:
RANDFILE = $ENV::HOME/.rnd

[ req ]
default_bits = 1024
default_bits = 2048
default_keyfile = keyfile.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
Expand Down

0 comments on commit 2b18148

Please sign in to comment.