Working With The Error In Postman Client

I have been working in WEB API from a long duration of time, and while working with Web API I encountered a problem regarding  the SSL connection, while trying to post data to the server. The error mainly says "SSL Connections are being blocked: fix these by importing SSL Certificate in Chrome."

In this case what happened was,  the request I sent to the server did not hit my respective Controller and Method due to a block in the SSL connection.

So here's what actually happened in this case.

Suppose I have a controller and I have written some methods and try to call this from Postman.
  1. [AllowAnonymous]  
  2. [Route("Register")]  
  3. public async Task < IHttpActionResult > Register(RegisterBindingModel model)  
  4. {  
  5.     if (!ModelState.IsValid)  
  6.     {  
  7.         return BadRequest(ModelState);  
  8.     }  
  9.     var user = new ApplicationUser()  
  10.     {  
  11.         UserName = model.Email, Email = model.Email  
  12.     };  
  13.     IdentityResult result = await UserManager.CreateAsync(user, model.Password);  
  14.     if (!result.Succeeded)  
  15.     {  
  16.         return GetErrorResult(result);  
  17.     } else  
  18.     {  
  19.         return Ok();  
  20.     }  
  21. }  
Now I will try to call this method from Postman but it will show the following error.

Let's solve this problem by eliminating the blockage of the SSL connection. For this go to "Customize and Control Google Chrome."


Then go to Settings.

Click "Show advanced Settings".

Show advance Setings 

Click Manage Certificates and after that Trusted Certificate.

Click on Import.

And then browse a self signed Certificate. In case you don't have a self signed Certificate click the link to know how to create a Certificate:
After that it shows the message successfully --  import Certificate, now Restore the change and try to send the request from Postman. Now it will act as expected and if we put a breakpoint it will redirect to the same "controller and Method" as follows.


So in this way we can solve this problem. Hope it will help you if you encounter this problem.