Click here to Skip to main content
15,566,691 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How angular 11 application trusts server CA certificate

Angular 11 application uses HttClient library to call to REST APIs, now need the ways to trust server(API) CA certificate.

What I have tried:

Need approaches to trust server CA certificate from client APP (Angular 11)
Updated 9-Aug-21 3:31am

1 solution

That's not something your code needs to worry about. It's up to the browser and/or the OS to determine whether the certificate is valid or not.

If the certificate is not valid, then you need to contact whoever is in charge of managing the certificate on the server you're calling and get them to update their site's certificate to a valid one.

Javascript code running in the browser has no control over whether or not the certificate presented by the server is trusted by the user/browser/device.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900