{"id":4741,"date":"2016-03-15T17:23:43","date_gmt":"2016-03-15T16:23:43","guid":{"rendered":"https:\/\/www.bdjl.de\/localhost\/?p=4741"},"modified":"2016-03-15T17:25:32","modified_gmt":"2016-03-15T16:25:32","slug":"gnupg-8196","status":"publish","type":"post","link":"https:\/\/www.bdjl.de\/localhost\/?p=4741","title":{"rendered":"gnupg 8192"},"content":{"rendered":"<p>Janis entdeckt (endlich wieder) Verschl\u00fcsselung. Enigmail will aber nicht funktionieren &#8211; deswegen muss gnupg direkt an die Arbeit.<\/p>\n<p>Erstens eine Textdatei erstellen mit dem folgenden Inhalt:<\/p>\n<pre class=\"lang:default decode:true\">Key-Type: RSA\r\nKey-Length: 8192\r\nName-Real: Vorname Nachname\r\nName-Email: emailadresse@domain.tld\r\nExpire-Date: 2y\r\nPreferences: SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES TWOFISH CAST5 BZIP2 ZLIB ZIP Uncompressed<\/pre>\n<p>und dann den Key erzeugen lassen mit<\/p>\n<pre class=\"lang:default decode:true \">gpg --gen-key --batch --enable-large-rsa &lt;dateinamevonoben&gt;<\/pre>\n<p>Das dauert ne kleine Ewigkeit (je nach Rechner und vorhandenem Zufall).<\/p>\n<p>Da fehlt nun das Passwort. Also zuerst die Schl\u00fcssel-ID herausfinden:<\/p>\n<pre class=\"lang:default decode:true \">gpg --list-keys<\/pre>\n<p>und dann den Schl\u00fcssel editieren:<\/p>\n<pre class=\"lang:default decode:true\">gpg --edit-key &lt;Schluessel-ID&gt;\r\ngpg&gt; passwd\r\ngpg&gt; save<\/pre>\n<p>Der Schl\u00fcssel l\u00e4sst sich dann in Enigmail importieren. Das Widerrufszertifikat kann dann dort erstellt werden, oder eben auch mit gnupg:<\/p>\n<pre class=\"lang:default decode:true \">gpg --output widerrufszertifikat.asc --gen-revoke &lt;Schluessel-ID&gt;<\/pre>\n<p>gnupg stellt dann einige simple Fragen und alles wird gut. Das Widerrufszertifikat dann am einfachsten als Anhang in keepassx speichern.<\/p>\n<p>Das Einzige, was mich st\u00f6rt, ist, dass Janis nun l\u00e4ngere Schl\u00fcssel hat als ich \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Janis entdeckt (endlich wieder) Verschl\u00fcsselung. Enigmail will aber nicht funktionieren &#8211; deswegen muss gnupg direkt an die Arbeit. Erstens eine Textdatei erstellen mit dem folgenden Inhalt: Key-Type: RSA Key-Length: 8192 Name-Real: Vorname Nachname Name-Email: emailadresse@domain.tld Expire-Date: 2y Preferences: SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES TWOFISH CAST5 BZIP2 ZLIB ZIP Uncompressed und dann den Key [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,5,18],"tags":[436],"class_list":["post-4741","post","type-post","status-publish","format-standard","hentry","category-fundestuecke","category-linux","category-memo","tag-gnupg"],"_links":{"self":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/4741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4741"}],"version-history":[{"count":6,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/4741\/revisions"}],"predecessor-version":[{"id":4747,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/4741\/revisions\/4747"}],"wp:attachment":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}