<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Fetchmail on Benjamin Italiaander</title><link>https://tlnd.org/Linux/fetchmail/</link><description>Recent content in Fetchmail on Benjamin Italiaander</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 24 Aug 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://tlnd.org/Linux/fetchmail/index.xml" rel="self" type="application/rss+xml"/><item><title>Fetchmail OpenSSL error</title><link>https://tlnd.org/Linux/fetchmail/openSSL_and_Fetchmail_part1/</link><pubDate>Wed, 24 Aug 2022 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/fetchmail/openSSL_and_Fetchmail_part1/</guid><description>&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Old method.&lt;/strong&gt; Current fetchmail versions check the full certificate instead of an MD5 fingerprint, see &lt;a href="https://tlnd.org/Linux/fetchmail/openSSL_and_Fetchmail_part2/"&gt;part 2&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="fetchmail-openssl-reported-error"&gt;Fetchmail OpenSSL reported error&lt;/h1&gt;
&lt;p&gt;If you get an OpenSSL error with fetchmail, generate an MD5 fingerprint of the server certificate to validate the OpenSSL connection, and add it to your &lt;code&gt;~/.fetchmailrc&lt;/code&gt; file. Also make sure you have an up-to-date version of OpenSSL installed.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Generate the MD5 fingerprint&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;openssl s_client -connect imap.example.com:993 &amp;lt;/dev/null 2&amp;gt;/dev/null &lt;span class="p"&gt;|&lt;/span&gt; openssl x509 -fingerprint -noout -md5 -in /dev/stdin
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Add these lines, with your generated fingerprint, to your ~/.fetchmailrc file&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ssl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sslfingerprint &lt;span class="s2"&gt;&amp;#34;01:02:03:04:05:06:07:08:09:10:11:12:13:14:15:FF&amp;#34;&lt;/span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Your config should end up looking something like this:&lt;/p&gt;</description></item><item><title>Fetchmail OpenSSL error, part 2</title><link>https://tlnd.org/Linux/fetchmail/openSSL_and_Fetchmail_part2/</link><pubDate>Wed, 24 Aug 2022 00:00:00 +0000</pubDate><guid>https://tlnd.org/Linux/fetchmail/openSSL_and_Fetchmail_part2/</guid><description>&lt;h1 id="fetchmail-openssl-error-part-2"&gt;Fetchmail OpenSSL error, part 2&lt;/h1&gt;
&lt;p&gt;In the past, fetchmail only required the MD5 fingerprint of an SSL certificate for validation. Since Fedora 36, fetchmail requires the complete certificate chain and &lt;code&gt;c_rehash&lt;/code&gt; links of the certificates.&lt;/p&gt;
&lt;p&gt;You can set this up with the following steps.&lt;/p&gt;
&lt;h2 id="get-the-domain-certificate"&gt;Get the domain certificate&lt;/h2&gt;
&lt;p&gt;Save the domain certificate somewhere. In this example we create a folder inside the home folder and save it there.&lt;/p&gt;
&lt;p&gt;(Replace &lt;code&gt;sub.domain.tld:993&lt;/code&gt; with your own server address, and &lt;code&gt;sub_domain_tld.cert&lt;/code&gt; with a filename that works for you.)&lt;/p&gt;</description></item></channel></rss>