I generated a certificate using ssl by running the script from the following link: https://gist.github.com/bjanderson/075fadfccdd12623ab935e57eff58eb4
The script ran just fine and I received all the expected files. I've imported the ca.crt to my chrome under the trusted root certification authorities but chrome still won't trust it.
I get the following errors:
Certificate - Subject Alternative Name missing
The certificate for this site does not contain a Subject Alternative Name extension containing a domain name or IP address.
Certificate - missing
This site is missing a valid, trusted certificate (net::ERR_CERT_AUTHORITY_INVALID).
How do i fix these two issues and get my chrome to trust my self signed certificate?
Best Answer
This mean:
This mean:
Server could not be trusted, because no valid certificate was provided... Ok, this would be solved when first error will be solved!
Think about the way (IP address or DNS name) you connect your server:
or
You could create cert with
CN=228.929.123.46
and addDNS.1=mydomain.example.com DNS.2=$HOSTNAME IP.1=127.0.0.1 DNS.3=other.domain.org DNS.
...CN=127.0.0.1
and addDNS.1=mydomain.example.com DNS.2=$HOSTNAME IP.1=228.929.123.46 DNS.3=other.domain.org DNS.
...But if on Internet, you'd better to whipe unfull hostname, localnet (192.168.x.x) and localip (127.x.x.x)!
CN=228.929.123.46
and addDNS.1=mydomain.example.com DNS.2=other.domain.org DNS.
...And use only DNS address or public ip to reach your server!
Have a look there,
Then to see how to do this...