I generated a certificate using certbot. And as a result , I received such files:
cert.pem
chain.pem
fullchain.pem
privkey.pem
How to make angular 13 work over https?
CodePudding user response:
To run ng serve with custom certificate:
ng serve --ssl --ssl-key /etc/letsencrypt/live/domain/privkey.pem --ssl-cert /etc/letsencrypt/live/domain/cert.pem
EDIT: updated to include your specific files