<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatically Renew VPN Certificates in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279078#M46510</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10477"&gt;@Steffen_Appel&lt;/a&gt;&amp;nbsp;for the suggestion. I have added a second cron job for automatic policy installation.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2026 12:20:12 GMT</pubDate>
    <dc:creator>HeikoAnkenbrand</dc:creator>
    <dc:date>2026-06-29T12:20:12Z</dc:date>
    <item>
      <title>Automatically Renew VPN Certificates</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279072#M46508</link>
      <description>&lt;P&gt;It is a recurring challenge to regenerate and maintain all VPN certificates. To automate this process, I used the Check Point script described in &lt;A href="https://support.checkpoint.com/results/sk/sk182070" target="_blank" rel="noopener"&gt;sk182070&lt;/A&gt;. The following guide explains how to implement it and how to execute it automatically.&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="background-color: #bbbbbb; height: 24px;"&gt;
&lt;TD width="100%" height="24px"&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1)&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#000000"&gt;Download the Check Point script from&lt;/FONT&gt; &lt;/STRONG&gt;&lt;A href="https://support.checkpoint.com/results/sk/sk182070" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;sk182070&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Download the Check Point script from &lt;A href="https://support.checkpoint.com/results/sk/sk182070" target="_self"&gt;sk182070&lt;/A&gt; to your Management Server and create the directory &lt;CODE data-end="364" data-start="345"&gt;/home/admin/cert/&lt;/CODE&gt;. &lt;BR /&gt;Copy the downloaded &lt;CODE data-end="409" data-start="386"&gt;gateway_cert_util.tar&lt;/CODE&gt; file into this directory and extract it using &lt;CODE data-end="461" data-start="456"&gt;tar&lt;/CODE&gt;.&lt;SPAN class="ͼe"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;# mkdir /home/admin/cert
# cd /home/admin/cert
--&amp;gt; Copy the file gateway_cert_util.tar from the SK into this &amp;lt;-- directory
# tar xvf /home/admin/cert/gateway_cert_util.tar
# chmod u+x /home/admin/cert/gateway_cert_util.sh&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="background-color: #cccccc;"&gt;
&lt;TD width="100%"&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2)&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Create a cron job to&amp;nbsp;renew all VPN certificates&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;Create a cron job (Once a month at 2:00 AM.) to execute the script once per month on the Management Server. The script will automatically renew all VPN certificates that are due to expire within the next 90 days.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;# crontab -e
--&amp;gt; Add the following entry to the crontab &amp;lt;--
0 2 1 * * /home/admin/cert/gateway_cert_util.sh -renew 90 -type vpn &amp;gt;&amp;gt; /var/log/gateway_cert_util.log 2&amp;gt;&amp;amp;1&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="background-color: #cccccc;"&gt;
&lt;TD width="100%"&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3)&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Add a cron job to install the required policy&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;If you want to automatically install the policy after the certificates have been renewed, you can create an additional cron job that installs the required policy packages (Once a month at 3:00 AM.). &lt;BR /&gt;&lt;BR /&gt;If step 3 is not performed, the certificate will be installed during the next policy deployment.&amp;nbsp;The previous VPN certificate will be revoked automatically after 7 days. If you do not install the policy within this period, the Security Gateway will not receive the renewed VPN certificate, which will potentially cause connectivity issues with VPN and web portals on the Security Gateway.&lt;BR /&gt;&lt;BR /&gt;Make sure to replace the policy names with your own. In this example, the policy packages are &lt;STRONG data-end="280" data-start="266"&gt;"&lt;FONT color="#339966"&gt;Standard&lt;/FONT&gt;"&lt;/STRONG&gt; and &lt;STRONG data-end="298" data-start="285"&gt;"&lt;FONT color="#339966"&gt;POLICY2&lt;/FONT&gt;"&lt;/STRONG&gt;. You can also install multiple policy packages automatically by adding/removing or rename additional policy names to the &lt;CODE data-end="407" data-start="401"&gt;echo&lt;/CODE&gt; command.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;# crontab -e
  --&amp;gt; Add the following entry to the crontab &amp;lt;--
0 3 1 * * echo "Standard" "POLICY2" | xargs -d ' ' -n 1 -I % mgmt_cli -r true install-policy access true policy-package "%" &amp;gt;&amp;gt; /var/log/gateway_cert_util.log 2&amp;gt;&amp;amp;1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="background-color: #cccccc;"&gt;
&lt;TD width="100%" height="46px"&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;4)&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Check the logs and cron jobs&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;You can use the following commands to verify that the cron job is running and that the script has written log entries.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;# cronjob -l
# cat /var/log/gateway_cert_util.log&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 18:04:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279072#M46508</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2026-06-29T18:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Renew VPN Certificates</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279076#M46509</link>
      <description>&lt;P&gt;You need to trigger a policy install to fully automate it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 11:39:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279076#M46509</guid>
      <dc:creator>Steffen_Appel</dc:creator>
      <dc:date>2026-06-29T11:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Renew VPN Certificates</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279078#M46510</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10477"&gt;@Steffen_Appel&lt;/a&gt;&amp;nbsp;for the suggestion. I have added a second cron job for automatic policy installation.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 12:20:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279078#M46510</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2026-06-29T12:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Renew VPN Certificates</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279093#M46511</link>
      <description>&lt;P&gt;Thanks but renewed certs are revoked automatically after 7 days...&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 14:26:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279093#M46511</guid>
      <dc:creator>Steffen_Appel</dc:creator>
      <dc:date>2026-06-29T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Renew VPN Certificates</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279113#M46512</link>
      <description>&lt;P&gt;CUT from&amp;nbsp;&lt;SPAN class="css-13y3t3g"&gt;&lt;SPAN class="css-vy7rm"&gt;sk182070&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;previous&lt;/STRONG&gt; VPN certificate will be revoked automatically after 7 days. If you do not install the policy within this period, the Security Gateway will not receive the renewed VPN certificate, which will potentially cause connectivity issues with VPN and web portals on the Security Gateway.&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;CUT&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="PDq2pG_selectionAnchorContainer" data-end="139" data-start="0"&gt;You must install the policy within 7 days. Otherwise, the previous VPN certificate will expire, and the VPN tunnel will no longer function.&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="379" data-start="141"&gt;Section 3 describes how to automate the policy installation. You should configure this step as a cron job to ensure the policy is installed regularly. Otherwise, connectivity issues may occur after 7 days when the old VPN certificate expires.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 18:01:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Automatically-Renew-VPN-Certificates/m-p/279113#M46512</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2026-06-29T18:01:49Z</dc:date>
    </item>
  </channel>
</rss>

