There is no straightforward way to do that, as some versions of NiFi have disabled calling invalid SSL endpoints. As a workaround, I am using the ExecuteStreamCommand processor and using curl to call the API.