<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Archiwa curl - soban</title>
	<atom:link href="https://soban.pl/category/curl/feed/" rel="self" type="application/rss+xml" />
	<link>https://soban.pl/category/curl/</link>
	<description>IT, Linux, Servers, Security</description>
	<lastBuildDate>Thu, 14 Oct 2021 18:04:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Checking SSL certyfikat date using nmap and curl</title>
		<link>https://soban.pl/checking-ssl-certyfikat-date-using-nmap-and-curl/</link>
		
		<dc:creator><![CDATA[soban]]></dc:creator>
		<pubDate>Thu, 14 Oct 2021 18:04:14 +0000</pubDate>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[Kali]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSL]]></category>
		<guid isPermaLink="false">https://soban.pl/?p=123</guid>

					<description><![CDATA[<p>This time I will use Kali Linux it is a great distro for pentesters. After all, nothing prevents you from using another distribution, such as Debian Linux. Sometimes we need to check the certificate issuance date. Nmap and curl are a very good tool for this.Both of these tools allow for advanced analysis of the [&#8230;]</p>
<p>Artykuł <a href="https://soban.pl/checking-ssl-certyfikat-date-using-nmap-and-curl/">Checking SSL certyfikat date using nmap and curl</a> pochodzi z serwisu <a href="https://soban.pl">soban</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This time I will use Kali Linux it is a great distro for pentesters. After all, nothing prevents you from using another distribution, such as Debian Linux.</p>



<p>Sometimes we need to check the certificate issuance date. Nmap and curl are a very good tool for this.<br>Both of these tools allow for advanced analysis of the SSL connection. Let&#8217;s try to check the certificate date with nmap:</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">$ nmap -p 443 --script ssl-cert soban.pl</pre></div>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="589" height="349" src="https://soban.pl/wp-content/uploads/2021/10/image-26.png" alt="" class="wp-image-124" srcset="https://soban.pl/wp-content/uploads/2021/10/image-26.png 589w, https://soban.pl/wp-content/uploads/2021/10/image-26-300x178.png 300w" sizes="(max-width: 589px) 100vw, 589px" /></figure>



<p>To be more precise, let&#8217;s leave the date and time alone: </p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">$ nmap -p 443 --script ssl-cert soban.pl | grep after | awk '{ print $5 }'</pre></div>



<p>Here is the result:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="630" height="72" src="https://soban.pl/wp-content/uploads/2021/10/image-27.png" alt="" class="wp-image-125" srcset="https://soban.pl/wp-content/uploads/2021/10/image-27.png 630w, https://soban.pl/wp-content/uploads/2021/10/image-27-300x34.png 300w" sizes="(max-width: 630px) 100vw, 630px" /></figure>



<p id="block-a72e2124-b959-447e-b473-50912ea3f2a4">In my experience nmap is a very good tool &#8211; however curl is much faster, to use it, do the following:</p>



<pre class="wp-block-preformatted">$ curl -X GET -i 'https://google.com' | grep -i 'date:' | grep GMT</pre>



<p>This is the effect:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="670" height="124" src="https://soban.pl/wp-content/uploads/2021/10/image-29.png" alt="" class="wp-image-127" srcset="https://soban.pl/wp-content/uploads/2021/10/image-29.png 670w, https://soban.pl/wp-content/uploads/2021/10/image-29-300x56.png 300w" sizes="(max-width: 670px) 100vw, 670px" /></figure>



<p>It is worth getting acquainted with both tools. Besides checking the date of the certificate, they offer a number of other possibilities.</p>
<p>Artykuł <a href="https://soban.pl/checking-ssl-certyfikat-date-using-nmap-and-curl/">Checking SSL certyfikat date using nmap and curl</a> pochodzi z serwisu <a href="https://soban.pl">soban</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
