Re: DEMO VIDEO & TEMPLATES. INTEGRATION WITH TENABLE SECURITY CENTER
New Member
Posts: 2
Registered: ‎06-14-2018
New Member
Posts: 2

FYI re: php script... an adition of the following cURL optional parameter might be needed to allow the PHP script to work correctly, also, don't forget to uncomment out the cURL extension in the file php.ini  (extension=curl) if php gives a curl_init() function not found error:

 

    CURLOPT_SSL_VERIFYHOST => false,

 

So the entire definition of curl_setopt_array() from TNBL_create_EAs.php looks like this:

 

#extensibleattributedef

  $ch = curl_init();
  curl_setopt_array($ch,array(
    CURLOPT_USERPWD => $NIOS_User . ":" . $NIOS_PWD,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_SSL_VERIFYHOST => false,
   CURLOPT_VERBOSE => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => array('Content-Type: application/json')
    )
  );