'I have a question about my domain have not secure and turn red

I have my client as Nextjs App and my Api as C# Core. I use IIS Window Server. I have bought 2 SSL Certificates for both my client and my Api. I used OpenSSL to generate the PFX files, then import it to my client and api.

However my domain still have Not Secure and turn red as in this image:

My Domain

When I click in the Not Secure, I see that Certificate is not valid. And then when I click in that, it appears a detail of my api certificate. Does that mean my certificate for my api get something wrong or do I lost any step?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source