I have the following code that works correctly:
Code: Select all
: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: Select all
:put ([/tool fetch url="https://curl.se/ca/cacert.pem" output=user as-value]->"data")