Basically, I want to add a self-signed certificate (including complete chain with own CA and intermediate) to my Angular environment. The environment is reachable via pcname.fritz.box. That’s the idea.
Then I added the
server.key.pem to my
angular.json and started with
ng serve --host pcsname.fritz.box --ssl.
If I open the URL
https://pcname.fritz.box:4200/ with Firefox I get in the developer console
MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT and in Chrome/Edge I get
What I’m missing? I don’t want to add it as an exception. Instead it should appear as valid certificate locally.
Source: Angular Questions