mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 09:25:42 +02:00
check-certificates: use prepared user-agent string with fetch
This commit is contained in:
parent
0ad1a79d67
commit
a2749b2760
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
:global CertificateAvailable
|
:global CertificateAvailable
|
||||||
:global EscapeForRegEx;
|
:global EscapeForRegEx;
|
||||||
|
:global FetchUserAgent;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
:foreach Type in={ ".pem"; ".p12" } do={
|
:foreach Type in={ ".pem"; ".p12" } do={
|
||||||
:local CertFileName ([ $UrlEncode $Name ] . $Type);
|
:local CertFileName ([ $UrlEncode $Name ] . $Type);
|
||||||
:do {
|
:do {
|
||||||
/tool/fetch check-certificate=yes-without-crl \
|
/tool/fetch check-certificate=yes-without-crl http-header-field=({ $FetchUserAgent }) \
|
||||||
($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value;
|
($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value;
|
||||||
$WaitForFile $CertFileName;
|
$WaitForFile $CertFileName;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue