netGet turn off verification of the certificate

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
4 posts • Page 1 of 1
mgreiner
Posts: 4
Joined: Wed May 02, 2018 11:47 am

netGet turn off verification of the certificate

Post by mgreiner »

Hello,

is it possible to turn off the verification of the certificate like the option -k via curl at netGet?

curl example:

curl -X GET -H "Content-Type: application/json" -H "Authorization: Basic xxxxxxxxxxxxxxxxxxx" -k https://10.237.126.21/opspace/api/v1/sources/

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: netGet turn off verification of the certificate

Post by kilianvp »

yes options["ignoreSslErrors"] = "";

Code: Select all

  mapping m;
  netGet("https://192.168.10.252/ui/#/login", m, makeMapping("ignoreSslErrors",""));

mgreiner
Posts: 4
Joined: Wed May 02, 2018 11:47 am

Re: netGet turn off verification of the certificate

Post by mgreiner »

I tried this, but it doesnt work :(

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: netGet turn off verification of the certificate

Post by kilianvp »

Code: Select all

  mapping m;
  mapping headers = makeMapping("Content-Type", "application/json", "Authorization", "Basic xxxxxxxxxxxxxxxxxxx");
  netGet("https://10.237.126.21/opspace/api/v1/sources", m, makeMapping("ignoreSslErrors","", "headers", headers));

Post Reply
4 posts • Page 1 of 1