Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15434

Scripting • Updating CA root certs regularly

$
0
0
Following on this old post: viewtopic.php?t=169662&sid=6818e151144b ... d9a4004745

My version looks like this but generates the error every other run. I run it once, it fails (i.e. it writes the error to the log), run it again and it passes (i.e. it writes the success message to the log). If I manually enter the commands they work fine on their own. Any reason why it would fail 50% of the time?
Code:
{  :do {      /tool fetch url=https://pki.goog/roots.pem dst-path=roots-goog.pem;      /certificate remove [ find where authority expired ];      /certificate import file-name=roots-goog.pem passphrase="";      /file remove roots-goog.pem;      :log info ("Updated certificate trust store");  } on-error={      :log error ("Failed to update certificate trust store");  };}

Statistics: Posted by ambor — Fri Apr 05, 2024 2:31 pm



Viewing all articles
Browse latest Browse all 15434

Trending Articles