V
V
Vasya2019-07-22 17:46:47
Nginx
Vasya, 2019-07-22 17:46:47

How to generate DH 1024 certificate with crt and key file for nginx?

How to generate DH 1024 certificate with crt and key file for nginx?
Tried

openssl dhparam -out dhparam.pem 1024
openssl genpkey -paramfile dhparam.pem -out dhkey.pem

Nginx swears that the certificate is not suitable.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-07-22
@haramba

You do not confuse dhparm with a regular certificate.
Flies separately, cutlets separately.

openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout server.key -out server.crt

C
CityCat4, 2019-07-22
@CityCat4

dhparam generates a starting Diffie-Hellman number for SSL, this is indirectly related to certificates. It is needed to prevent the attack of lowering the stability of the starting number, since the standard starting numbers are well known, it is possible to force the system to switch to an unstable number and carry out an attack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question