Skip to content

Commit

Permalink
Set openssl req default_bits to the configured key size
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Aug 20, 2016
1 parent fa6bb40 commit 50a2f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/secret/pki/lib/pki-authority
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ create_openssl_request_config () {
[ req ]
default_md = sha256
default_bits = 4096
default_bits = ${config['key_size']}
default_keyfile = private/key.pem
prompt = no
encrypt_key = no
Expand Down
2 changes: 1 addition & 1 deletion files/usr/local/lib/pki/pki-realm
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ create_openssl_config () {
[ req ]
default_md = sha256
default_bits = 2048
default_bits = ${config['realm_key_size']}
default_keyfile = private/key.pem
prompt = no
encrypt_key = no
Expand Down

0 comments on commit 50a2f8b

Please sign in to comment.