0

I am trying to make an ajax request to a trusted test server through chrome extension, which is self signed. so whenever i make a request it provide me Badrequest but it works fine on orignal/main web server. So i need to override the self signed certificate in order to make a successful ajax request. Any help would be appreciated!

user3163912
  • 5
  • 1
  • 6
  • How about just adding that certificate to the certificate store in Chrome options? – Xan Jun 06 '14 at 14:31
  • http://stackoverflow.com/questions/7580508/getting-chrome-to-accept-self-signed-localhost-certificate will help – Xan Jun 06 '14 at 14:46
  • ok u mean that adding manually into the store! – user3163912 Jun 06 '14 at 14:48
  • Clarify your question then. And the title too. – Xan Jun 06 '14 at 14:48
  • well the scenario is, i am able to make successful ajax request to main server which is ssl verfied but when i try to do that on test server which is self signed it give BAD REQUEST error. – user3163912 Jun 06 '14 at 14:51
  • 1
    Well, as stated, the answer would be "no way an extension would be allowed to modify the certificate store". – Xan Jun 06 '14 at 17:04
  • Well there is solution for this in c# like: "ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;" If something like this javascript can be embedded itno content scripts. – user3163912 Jun 06 '14 at 17:45
  • So do i consider it that this can't be done? – user3163912 Jun 09 '14 at 13:47
  • Programmatically, from within the extension? Consider that it cannot. – Xan Jun 09 '14 at 14:02
  • ok thanx! Xan then i have to try on main server. – user3163912 Jun 09 '14 at 14:54
  • How many machines do you need for testing? If not many, why not add the certificate manually? If many, why not get a non-self-signed cert? – Xan Jun 09 '14 at 14:58
  • i tried to importing that doesn't work, even it's fine to work on main server. And one more question now Xan, i am able to do ajax request but status i am getting is 204, and i need to insert some data into my server once i logged in. Thanx in Advance! – user3163912 Jun 09 '14 at 15:17
  • If you have another question, ask a new question. – Xan Jun 09 '14 at 15:30
  • Ok Xan i just did that!. – user3163912 Jun 09 '14 at 15:30

0 Answers0