S
S
scar172021-12-31 18:46:25
OpenSSL
scar17, 2021-12-31 18:46:25

How to generate the required certificate and key?

How to generate a certificate and a private key? I tried to generate it myself, but opensll generated a CERTIFICATE REQUEST for me, but I just need a certificate and a private key to start the server from the https library in node.js. How to generate?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ayazer, 2021-12-31
@scar17

req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question