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 installcert_1

2. Go to File > Add /Remove Snap-in… (Or simply press Ctrl+M)installcert_2

3. Highlight Certificates and click on Addinstallcert_3

4. Select Computer Account

installcert_4

5. Select Local Computer and click Finish

installcert_5

6. Click OK

installcert_6

7. Browse Certificates> Personal > Certificates and locate the localhost certificate

installcert_7

8. Right click on localhost certificate, click All Task> Export

installcert_8

9. Click Next

installcert_9

10. Choose Yes, export the private key and click Next

installcert_10

11. Tick include all and click Next

installcert_11

12. Type in your password (you must remember this password to import the certificate later)

installcert_12

13. Click Finish

installcert_13

14. Expand this section
installcert_14

15. Right click on Certificates > All Task> Import

installcert_15

16. Click Next

installcert_16

17. Locate the pfx file that we saved earlier and click Open

installcert_17

18. Click Next

installcert_18

19. Type in the password that we’ve been specified earlier, and click Next

installcert_19

20. Click Next

installcert_20

21. Click Finish

installcert_21

22. Make sure your certificate is imported to Trusted Certification Authorities

installcert_22

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

Your email address will not be published. Required fields are marked *