<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GPG on nagg.eu</title><link>https://nagg.eu/tags/gpg/</link><description>Recent content in GPG on nagg.eu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 10 Aug 2018 10:22:56 +0000</lastBuildDate><atom:link href="https://nagg.eu/tags/gpg/index.xml" rel="self" type="application/rss+xml"/><item><title>Generate a secure GPG key</title><link>https://nagg.eu/generate-a-secure-gpg-key/</link><pubDate>Fri, 10 Aug 2018 10:22:56 +0000</pubDate><guid>https://nagg.eu/generate-a-secure-gpg-key/</guid><description>&lt;p&gt;For some reason &lt;code&gt;gpg gen-key&lt;/code&gt; still defaults to SHA1 and RSA2048, due to the known weaknesses of SHA1 it is probably a better idea to use SHA256.&lt;br&gt;
First of all, we need to create a configuration file.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;cat ~/.gnupg/gpg.conf&amp;#34;
---
personal-digest-preferences SHA256
cert-digest-algo SHA256
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To generate a new key type (also specify to use RSA 4096):&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;gpg --gen-key
### or
gpg --full-generate-key
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Other useful commands are:&lt;/p&gt;</description></item></channel></rss>