I am having trouble setting up https (ssl) with pimatic. I am working on a custom frontend (written in Ionic), and I want to access the api through https. I have followed the steps described in https://pimatic.org/guide/getting-started/remote-ssl/.
A certificate is successfully created and pimatic runs successfully on the https protocol.
However, both chrome on my Windows pc and chrome on my Android device still warn about the unsafe website, even though the certificate is installed through http://192.168.178.165/root-ca-cert.crt.
Maybe I am missing some basic SSL knowledge, but I would hope that after installing the certificate in Trusted Root Certificates on Windows and the default installation on Android would work.
What am I missing here?
Also, what is the difference between the ssl installation described here and the ssl installation described on the pimatic website guide? Will the installation on the mentioned topic work better?
EDIT:
This is in the config.json:
"httpsServer": {
"enabled": true,
"port": 443,
"hostname": "", // also tried the local network ip
"keyFile": "ca/pimatic-ssl/private/privkey.pem",
"certFile": "ca/pimatic-ssl/public/cert.pem",
"rootCertFile": "ca/certs/cacert.crt"
}
EDIT2:
The error on chrome is ERR_CERT_COMMON_NAME_INVALID, and I tested in Edge where it accepts the https connection.
It seems to be the problem described here and here. The default ssl-setup as described on pimatic.org doesn’t work, because it does not configure the Common Name.