I've created a self-signed SSL certificate for local development. When accessing the page, I get a
NET::ERR_CERT_AUTHORITY_INVALID error. But when I try to import it into Chrome (chrome://settings/certificates), it fails:
The file contained one certificate, which was not imported:
- mylocalwebapp.dev: Not a Certification Authority
This is the command I've ran to create the certificate:
openssl req -new -x509 -nodes \ -extensions SAN \ -reqexts SAN \ -days 365 \ -newkey rsa:2048 \ -keyout /etc/ssl/private/apache-selfsigned.key \ -out /etc/ssl/certs/apache-selfsigned.crt \ -config <(cat /etc/ssl/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:mylocalwebapp.dev'))
I've added the SAN-options because as of version 58, Chrome doesn't accept it without SAN. It worked on Chrome 57 and it still works on Firefox.
How can I get my self-signed certificate working on Chrome 58 on Ubuntu 17.04?