Answer the question
In order to leave comments, you need to log in
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.
openssl req -new -sha256 -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt
Answer the question
In order to leave comments, you need to log in
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question