I'm trying to run the localhost angular app in https but getting The site cant be reached now/localhost refused to connect. I tried creating ssl certificate and key and placed in angular.json but still am facing this issue by running command ng serve --ssl true --port 44314
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app.com:build"
"sslKey": "src/localhost.key",
"sslCert": "src/localhost.crt"
}
}