<?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: Valid Certificates Overview - Oneliner in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/248791#M1183</link>
    <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Does it check portal certificates as well?&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 12:30:07 GMT</pubDate>
    <dc:creator>Ilovecheckpoint</dc:creator>
    <dc:date>2025-05-13T12:30:07Z</dc:date>
    <item>
      <title>Valid Certificates Overview - Oneliner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/179954#M1103</link>
      <description>&lt;P&gt;Since I often run into problems with expired IKE or SIC certificates I have written an oneliner that shows the current date and time, the expiration date of the internal Check Point CA and all valid IKE and SIC certificates with expiration date.&lt;/P&gt;
&lt;P&gt;The oneliner must be run on the management in expert mode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oneliner_certificate_overview_1.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/20778iA86D1CE48264F765/image-size/large?v=v2&amp;amp;px=999" role="button" title="oneliner_certificate_overview_1.png" alt="oneliner_certificate_overview_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if [[ `$CPDIR/bin/cpprod_util FwIsFirewallMgmt 2&amp;gt;/dev/null` != *'1'* ]] || [[ `$CPDIR/bin/cpprod_util FwIsStandAlone 2&amp;gt;/dev/null` == *'1'* ]];then echo;printf '%.s-' {1..70};echo;echo;echo ' Not a Management!';echo;printf '%.s-' {1..70};echo;else echo;echo -n 'Current Date and Time';echo;printf '%.s-' {1..70};echo;date +"%d %b %Y %H:%M:%S %:z %Z";echo;echo;echo -n 'Check Point Internal Certificate Authority (ICA) Experation Date';echo;printf '%.s-' {1..70};echo;date --date="$(echo | cpopenssl pkcs12 -in $FWDIR/conf/InternalCA.p12 -nokeys -nomacver -passin pass: 2&amp;gt;/dev/null | cpopenssl x509 -noout -enddate | awk -F '=' '{print $NF}' )" +"%d %b %Y %H:%M:%S %:z %Z";echo;echo;echo -n 'Current Valid IKE &amp;amp; SIC Certificates signed by ICA';echo;printf '%.s-' {1..70};echo;cpca_client lscert -stat Valid | awk 'NR &amp;gt; 3 { print }' | awk '{ printf "%s", $0; if (NR % 4 == 0) print ""; else printf " " }' | awk '{if ($9 ~ /SIC/) print $3,$9,$12,$25,$24,$27,$26; else if ($11 ~ /IKE/) print $3,$11,$14,$27,$26,$29,$28}' | awk -F '[, ]' '{if ($3 ~ /SIC/) print $1,$3,$4,$5,$6,$7,$8; else if ($2 ~ /IKE/) print $1,$2,$3,$4,$5,$6,$7}' | sort -k6,6n -k5,5M -k4,4n -k7.1,7.7 | sed 's/CN=//' | awk '{printf "%s %s %s %02d %s %s %s\n", $1,$2,$3,$4,$5,$6,$7}' | awk 'BEGIN {print "Nr.",";Objectname",";Type",";Serial",";Not Valid After","","",""} {print NR,";"$1,";"$2,";"$3,";"$4,$5,$6,$7}'| column -t -s ";" -o " " ;echo;fi&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 11:02:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/179954#M1103</guid>
      <dc:creator>C_H</dc:creator>
      <dc:date>2023-05-05T11:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner - Overview Valid Certificates</title>
      <link>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/179973#M1104</link>
      <description>&lt;P&gt;Wow...fantastic &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Just ran it in my R81.20 lab and below is output...perfect.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;Current Date and Time&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;04 May 2023 09:37:13 -04:00 EDT&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Check Point Internal Certificate Authority (ICA) Experation Date&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;18 Jan 2038 22:14:07 -05:00 EST&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Current Valid IKE &amp;amp; SIC Certificates signed by ICA&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;Nr. Objectname Type Serial Not Valid After&lt;BR /&gt;1 quantum-fw IKE 29117 01 May 2026 11:31:29&lt;BR /&gt;2 QUANTUM-MANAGEMENT SIC 65050 25 Nov 2027 09:28:55&lt;BR /&gt;3 cp_mgmt SIC 47684 25 Nov 2027 09:28:57&lt;BR /&gt;4 cp_mgmt SIC 94789 25 Nov 2027 09:28:49&lt;BR /&gt;5 cp_mgmt SIC 96292 25 Nov 2027 09:29:05&lt;BR /&gt;6 quantum-fw SIC 37617 25 Apr 2028 09:25:54&lt;/P&gt;
&lt;P&gt;[Expert@QUANTUM-MANAGEMENT:0]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 13:37:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/179973#M1104</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-05-04T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner - Overview Valid Certificates</title>
      <link>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/179987#M1105</link>
      <description>&lt;P&gt;Added it to&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/General-Topics/One-liner-collection-updated-for-R81-x/m-p/176284#M29338" target="_self"&gt;&lt;SPAN&gt;One-liner collection (updated for R81.x)&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:53:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/179987#M1105</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-05-04T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oneliner - Overview Valid Certificates</title>
      <link>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/180011#M1106</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/181"&gt;@_Val_&lt;/a&gt;&amp;nbsp;potential Toolbox candidate here&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 19:34:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/180011#M1106</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-05-04T19:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Valid Certificates Overview - Oneliner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/233149#M1169</link>
      <description>&lt;P&gt;To all here, how hard would it be to automate sending the output of this script to a specified email address on a regular basis?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 16:20:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/233149#M1169</guid>
      <dc:creator>CPArk</dc:creator>
      <dc:date>2024-11-19T16:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Valid Certificates Overview - Oneliner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/248791#M1183</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Does it check portal certificates as well?&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 12:30:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Valid-Certificates-Overview-Oneliner/m-p/248791#M1183</guid>
      <dc:creator>Ilovecheckpoint</dc:creator>
      <dc:date>2025-05-13T12:30:07Z</dc:date>
    </item>
  </channel>
</rss>

