2

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

2 Comments

Support for camel case arguments has been deprecated and will be removed in a future major version. Use '--ssl-key' instead of '--sslKey'. Unknown option: '-t' Unknown option: '/etc/letsencrypt/live/domain/fullchain.pem' I also tried using an --ssl-key
my bad, updated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.