{"id":68,"date":"2014-10-22T18:38:08","date_gmt":"2014-10-22T18:38:08","guid":{"rendered":"http:\/\/192.168.1.102\/?p=68"},"modified":"2014-10-22T21:38:45","modified_gmt":"2014-10-22T21:38:45","slug":"gpg-command-line","status":"publish","type":"post","link":"https:\/\/digitalsos.net\/?p=68","title":{"rendered":"gpg command line"},"content":{"rendered":"<p>First create a key:<\/p>\n<p><code>gpg --gen-key<\/code><\/p>\n<p>For generation I use the default of RSA and RSA, and I use 4096 bits, and i usually let the keys live for 1y.<\/p>\n<p>Create a Revocation Certificate so you can Revoke you key on a keyserver<\/p>\n<p><code>gpg --gen-revoke --armor --output=GPGRevocationCertificate.asc your@email.address<\/code><\/p>\n<p>Create your ASCII public key so other people can encrypt to you.<\/p>\n<p><code>gpg --armor --output pubkey.txt --export 'Your Name'<\/code><br \/>\nPost it to a key server<br \/>\n<code>gpg --send-keys 'Your Name' --keyserver http:\/\/pgp..mit.edu<\/code><\/p>\n<p>To encrypt you need to add your self as a recipiant.<\/p>\n<p><code>gpg --encrypt --recipient 'Your Name' secret.txt<\/code><\/p>\n<p>To decrypt a file.<\/p>\n<p><code>gpg --output secret.txt --decrypt secret.txt.gpg<\/code><\/p>\n<p>If you want to add a user to your keyring.<\/p>\n<p><code>gpg --import key.asc<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First create a key: gpg &#8211;gen-key For generation I use the default of RSA and RSA, and I use 4096 bits, and i usually let the keys live for 1y. Create a Revocation Certificate so you can Revoke you key on a keyserver gpg &#8211;gen-revoke &#8211;armor &#8211;output=GPGRevocationCertificate.asc your@email.address Create your ASCII public key so other<\/p>\n<div class=\"read-more-wrapper\"><a class=\"read-more\" href=\"https:\/\/digitalsos.net\/?p=68\" title=\"Read More\"> <span class=\"button \">Read More<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgxmGV-16","_links":{"self":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=68"}],"version-history":[{"count":4,"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/digitalsos.net\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalsos.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}