I've added the CA certificate to Chrome trusted authorities list so it accepts the authority. But there is still a problem with the names:
I've set CN to the IP address and added a Subject Alternative Name with the same value. I've tried CN-only too.
Why is it failing?