Home > Software engineering >  Angular 13 https
Angular 13 https

Time:06-23

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

Documentation

EDIT: updated to include your specific files

  • Related