Linux - [solucionado]SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small

 
Vista:
Imágen de perfil de Administrador

[solucionado]SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small

Publicado por Administrador (2 intervenciones) el 29/10/2018 11:10:38
He actualizado Apache a la versión 2.4.35 en mi servidor de desarrollo y al reiniciar el servicio, me he encontrado con este error en el log error.log:

[ssl:emerg] [pid 28627] SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small

Después de mucho revisar y buscar por Internet, creo que el problema ha sido por disponer de un certificado inferior a 2048 bits... por lo que he generado un nuevo certificado local de 2048 bits:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# req -x509 -nodes -days 365 -newkey rsa:2048 -keyout midominio.com.key -out midominio.com.crt
 
Generating a RSA private key
................................+++++
................+++++
writing new private key to 'midominio.com.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]:ES
State or Province Name (full name) [Some-State]:Barcelona
Locality Name (eg, city) []:Barcelona
Organization Name (eg, company) [Internet Widgits Pty Ltd]:midominio
Organizational Unit Name (eg, section) []:develop
Common Name (e.g. server FQDN or YOUR name) []:midominio.com
Email Address []:

Una vez generado el nuevo certificado y habiendo reemplazado los antiguos archivo midominio.com.key y midominio.com.crt Apache ha vuelto a funcionar correctamente!!!


Espero que os sirva de ayuda.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

[solucionado]SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small

Publicado por emanuel (2 intervenciones) el 14/01/2022 22:02:14
Gracias. Estuve buscando la solucion al problema mucho tiempo y llegue aqui.. me salvaste..
El problema era que al certificado lo generaba de 1024 .. pero lo genere de 2048 y funciono..
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar