added ssl verification

This commit is contained in:
olegphenomenon 2022-02-07 15:09:05 +02:00
parent 61c90b73ca
commit de9504fef7
5 changed files with 16 additions and 0 deletions

View file

@ -34,6 +34,9 @@ module EisBilling
'Accept' => TOKEN
}
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.post(invoice_generator_url, json_obj.to_json, headers)
end

View file

@ -21,6 +21,9 @@ module EisBilling
'Accept' => TOKEN
}
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.post(invoice_generator_url, obj_data.to_json, headers)
end

View file

@ -20,6 +20,9 @@ module EisBilling
'Accept' => TOKEN
}
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.post(invoice_generator_url, prepared_data.to_json, headers)
end

View file

@ -41,6 +41,9 @@ module EisBilling
'Accept' => TOKEN
}
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.post(invoice_generator_url, prepared_data.to_json, headers)
end

View file

@ -52,5 +52,9 @@ def base_request(url:, json_obj:)
'Accept' => TOKEN
}
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.post(url, json_obj.to_json, headers)
end