Hi Marco Vaino,
The net::ERR_CERT_INVALID error you're seeing when accessing your IIS-hosted API from another machine is expected when using a self-signed certificate. This happens because browsers like Chrome don’t automatically trust certificates that aren’t issued by a recognized Certificate Authority (CA).
Even though your self-signed certificate is valid for your server, other devices on the network will reject it unless they’re explicitly told to trust it.
Since your API is only used within your internal network, you can resolve this by manually installing and trusting the certificate on each client machine.
1.Export the Self-Signed Certificate
On the IIS server:
- Open
certlm.msc(Local Machine Certificate Store). - Find your certificate under Personal > Certificates.
- Right-click > All Tasks > Export.
- Choose No, do not export the private key.
- Export as a
.CERfile.
2.Install the Certificate on Client Machines
On each client PC:
- Double-click the
.CERfile. - Click Install Certificate.
- Choose Local Machine (you may need admin rights).
- Select Place all certificates in the following store.
- Browse to Trusted Root Certification Authorities.
- Finish the wizard and restart the browser.
This tells the client machine to trust your self-signed certificate, so the browser will stop showing the ERR_CERT_INVALID error.
For more information:
https://learn.microsoft.com/en-us/biztalk/adapters-and-accelerators/accelerator-rosettanet/exporting-certificates