{"id":3015,"date":"2020-03-01T18:50:20","date_gmt":"2020-03-01T17:50:20","guid":{"rendered":"http:\/\/www.anadebreuil.org\/blog\/?p=3015"},"modified":"2020-03-01T20:07:47","modified_gmt":"2020-03-01T19:07:47","slug":"convertir-ficheros-alac-en-flac-2-2","status":"publish","type":"post","link":"https:\/\/www.anadebreuil.org\/blog\/?p=3015","title":{"rendered":"Firmar paquetes RPM con GPG"},"content":{"rendered":"<p>Gu\u00eda breve para configurar GPG y usarlo para firmar paquetes RPM antes de distribuirlos.<\/p>\n<ol>\n<li>Crear una clave PGP:\n<pre>$ gpg --full-generate-key<\/pre>\n<p>Bonus: listar la clave:<\/p>\n<pre>$ gpg --list-keys<\/pre>\n<\/li>\n<li>Exportar la clave p\u00fablica a un fichero de texto:\n<pre>$ gpg --armor \\\n   --output fichero.gpg \\\n   --export nombre@example.com<\/pre>\n<p>Bonus: ver la clave p\u00fablica.<\/p>\n<pre>$ cat fichero.gpg\n-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQENBF5a2CgBCADnV5UZru90te1DTLA2mja5blpuw3FQAzpJqfjlEXfsNS81fqxr\n\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7\n=AJis\n-----END PGP PUBLIC KEY BLOCK-----<\/pre>\n<\/li>\n<li>Importar al sistema de paquetes RPM la clave p\u00fablica:\n<pre>$ sudo rpmkeys --import fichero.gpg<\/pre>\n<p>Para ver las claves importadas:<\/p>\n<pre>rpm -qa gpg-pubkey* \\\n   --qf '%{name}-%{version}-%{release} --&gt; %{summary}\\n'<\/pre>\n<\/li>\n<li>Firmar un fichero rpm:\n<pre>rpmsign --addsign path\/to.rpm<\/pre>\n<p>Verificar la firma:<\/p>\n<pre>rpm --checksig path\/to.rpm<\/pre>\n<\/li>\n<\/ol>\n<h5>Referencias:<\/h5>\n<ul>\n<li><a href=\"https:\/\/www.gnupg.org\/gph\/en\/manual.html\">The GNU Privacy Handbook<\/a><\/li>\n<li><a href=\"https:\/\/fedoranews.org\/tchung\/gpg\/\">How to sign your custom RPM package with GPG Key<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Gu\u00eda breve para configurar GPG y usarlo para firmar paquetes RPM antes de distribuirlos.<\/p>\n","protected":false},"author":1,"featured_media":3037,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[109,95,111,110],"class_list":["post-3015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chuletas","tag-gpg","tag-rpm","tag-rpmkeys","tag-rpmsign"],"_links":{"self":[{"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3015"}],"version-history":[{"count":20,"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3015\/revisions"}],"predecessor-version":[{"id":3048,"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3015\/revisions\/3048"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/3037"}],"wp:attachment":[{"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anadebreuil.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}