B
B
bio2017-09-20 17:15:51
Google Chrome
bio, 2017-09-20 17:15:51

How to add a self-signed certificate to browsers?

Hello!
I'm trying to create and add a self-signed certificate to the Google Chrome browser, but when adding an error:

The private key for the client certificate is missing or invalid.

The certificate is created using the command:
openssl req -new -sha256 -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt

Without adding, the browser swears at the certificate.
How to win?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikolai Korabelnikov, 2017-09-20
@nmk2002

If you add it as a client certificate, that is, for further use for client authentication, then you need a p12 / pfx file, which also contains the private key. You can make it from the private key and certificate using the openssl command.
If you need to add a server certificate, then you just add it in the wrong place. You need to add not to personal certificates, but to trusted root certification authorities.

S
Sanes, 2017-09-20
@Sanes

Show host configuration. Maybe there is an error.

C
CityCat4, 2017-09-21
@CityCat4

The CA keys are added to "Trusted Root Certification Authorities". And you seem to be trying to add to your private keys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question