How to trust IISExpress self-signed certificate
I had some projects that requires me to create a webservice through a secure layer, and I was having a problem connecting to my webservice because the certificate is not trusted in client’s side, causing the connection couldn’t established. The solution for this problem is quite simple, we just need to import the certificate to the Trusted Root Certification Authorities. So, here are the steps…
1. Press window button and type mmc.exe, and click on the icon
2. Go to File > Add /Remove Snap-in… (Or simply press Ctrl+M)
3. Highlight Certificates and click on Add
4. Select Computer Account
5. Select Local Computer and click Finish
6. Click OK
7. Browse Certificates> Personal > Certificates and locate the localhost certificate
8. Right click on localhost certificate, click All Task> Export
9. Click Next
10. Choose Yes, export the private key and click Next
11. Tick include all and click Next
12. Type in your password (you must remember this password to import the certificate later)
13. Click Finish
15. Right click on Certificates > All Task> Import
16. Click Next
17. Locate the pfx file that we saved earlier and click Open
18. Click Next
19. Type in the password that we’ve been specified earlier, and click Next
20. Click Next
21. Click Finish
22. Make sure your certificate is imported to Trusted Certification Authorities
And voila, we’re done! after we imported this certificate to the Trusted Root CA, the connection will be established to the webservice that we configured using SSL.
Leave a Reply