I want to make a script for cloudflare update.
I have the following code that works correctly:
but i dont want to have the delay command and i dont want to write to disk.
I'm trying the next code:to store the data in memory but i dont known how to import the import the data in certificate import command.
I have the following code that works correctly:
Code:
:global findresult [/file find where name="cacert.pem"]:if ([:len $findresult] > 0) do={/file remove cacert.pem}/tool fetch url=https://curl.se/ca/cacert.pem:delay 10s/certificate remove [find where name~"(^|/)cacert.pem_"]/certificate import file-name=cacert.pem passphrase=""
I'm trying the next code:
Code:
:put ([/tool fetch url="https://curl.se/ca/cacert.pem" output=user as-value]->"data")
Statistics: Posted by denisun — Wed Dec 20, 2023 10:24 am