Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example in doc generates an SSL certificate key size that is too small #8484

Closed
HussainLatiff opened this issue Oct 22, 2024 · 0 comments
Closed

Comments

@HussainLatiff
Copy link

Description:

image

The following doc in Step 1, point 4 has the following command
sudo openssl genrsa -des3 -out server.key 1024

but when I used it to generate the key and run the nginx server

sudo nginx -s reload
--------------------------------------------------------------------------------------------------------------------------------------
nginx: [emerg] SSL_CTX_use_certificate("/etc/nginx/ssl/server.crt") failed (SSL: error:0A00018F:SSL routines::ee key too small)

What fixed this was changing the code at the Step1, point 4 to generate a key that has a length of 2048

sudo openssl genrsa -des3 -out server.key 2048

For reference I am running this on a Lenovo X1 Carbon 16Gb / 512Ssd running Ubuntu

Suggested Labels:
Doc Issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants