{"id":108,"date":"2011-02-02T10:12:23","date_gmt":"2011-02-02T09:12:23","guid":{"rendered":"https:\/\/ridgesolutions.ie\/?p=108"},"modified":"2011-02-02T10:19:24","modified_gmt":"2011-02-02T09:19:24","slug":"scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named","status":"publish","type":"post","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/","title":{"rendered":"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;"},"content":{"rendered":"<p>GPG is great software for manually encrypting data using the OpenPGP standard &#8211; good encryption tools are more and more becoming essential to software development.<\/p>\n<div>&nbsp;<\/div>\n<p>However using GPG from a script sometimes presents problems.  Why would you want to GPG from a script? Well you might want to encrypt a backup from within your backup script to allow you to safely FTP the backup file to remote storage, for example.<\/p>\n<div>&nbsp;<\/div>\n<p>Anyway, one such problem results in the following error message appearing, when you try to encrypt using an imported, but unsigned public key:<\/p>\n<div>&nbsp;<\/div>\n<p>&#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;<\/p>\n<div>&nbsp;<\/div>\n<p>GPG then says something along the lines of &#8216;do you want to continue anyway?&#8217; and tries to read your response from the terminal &#8211; the script is unable to answer the question and so the whole process stalls&#8230;<\/p>\n<div>&nbsp;<\/div>\n<p>One way to get around this problem is to manually set the trust level of the imported public key to &#8216;ultimate&#8217; so that the situation no longer arises, instructions for how to do this can be found here:<\/p>\n<div>&nbsp;<\/div>\n<p><a href=\"http:\/\/www.somacon.com\/p107.php\">http:\/\/www.somacon.com\/p107.php<\/a><\/p>\n<div>&nbsp;<\/div>\n<p>However in some cases this may not be easy or desirable, especially if you don&#8217;t have access to the command line &#8211; for example, you may be working with shared hosting.  You may also want to ensure that the _whole_ process is automatic with no manual steps required.<\/p>\n<div>&nbsp;<\/div>\n<p>So, another option is to pass the &#8216;&#8211;trust-model always&#8217; argument to gpg, this will force GPG not to issue the warning and not ask for confirmation &#8211; so your script should proceed OK.  For example:<\/p>\n<div>&nbsp;<\/div>\n<p>[code]<br \/>\ngpg &#8211;encrypt &#8211;yes &#8211;no-tty &#8211;trust-model always  &#8211;output backup.gpg &#8211;recipient backup@software-ireland.ie backup<br \/>\n[\/code]<\/p>\n<div>&nbsp;<\/div>\n<p>Older versions of GPG may not have this parameter, and will report an error when you pass it, in this case the depreciated &#8216;&#8211;always-trust&#8217; argument can be used instead.<\/p>\n<div>&nbsp;<\/div>\n<p>Be warned that this does reduce security slightly. If somebody somehow maliciously managed to substitute your public key for theirs and then managed to intercept the encrypted data, then they could decrypt it with their private key.  However in most cases this is of small concern &#8211; but do be aware of the possible dangers of blindly encrypting without requiring signed public keys.<\/p>\n<div>&nbsp;<\/div>\n<p>Script &#038; Encrypt!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GPG is great software for manually encrypting data using the OpenPGP standard &#8211; good encryption tools are more and more becoming essential to software development. &nbsp; However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[112,111,110,113],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-tech-stuff","tag-encryption","tag-gpg","tag-openpgp","tag-scripting"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kevin Godden\"\/>\n\t<meta name=\"google-site-verification\" content=\"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Scripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d\" \/>\n\t\t<meta property=\"og:description\" content=\"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2011-02-02T09:12:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2011-02-02T09:19:24+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Scripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d\" \/>\n\t\t<meta name=\"twitter:description\" content=\"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#article\",\"name\":\"Scripting GPG \\u2013 \\u201cIt is NOT certain that the key belongs to the person named\\u2026\\u201d\",\"headline\":\"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;\",\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#articleImage\",\"width\":400,\"height\":81},\"datePublished\":\"2011-02-02T10:12:23+00:00\",\"dateModified\":\"2011-02-02T10:19:24+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#webpage\"},\"articleSection\":\"Tech Stuff, encryption, GPG, OpenPGP, scripting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"name\":\"Tech Stuff\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"position\":2,\"name\":\"Tech Stuff\",\"item\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#listItem\",\"name\":\"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#listItem\",\"position\":3,\"name\":\"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/category\\\/tech-stuff\\\/#listItem\",\"name\":\"Tech Stuff\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/ridge_logo1.jpg\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#organizationLogo\",\"width\":400,\"height\":81},\"image\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/\",\"name\":\"Kevin Godden\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kevin Godden\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/\",\"name\":\"Scripting GPG \\u2013 \\u201cIt is NOT certain that the key belongs to the person named\\u2026\\u201d\",\"description\":\"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/2011\\\/02\\\/02\\\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/index.php\\\/author\\\/kgodden\\\/#author\"},\"datePublished\":\"2011-02-02T10:12:23+00:00\",\"dateModified\":\"2011-02-02T10:19:24+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#website\",\"url\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/\",\"name\":\"Ridge Solutions, Software Development and Software Engineering, Ireland.\",\"description\":\"Some thoughts of a busy Computer Engineer\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ridgesolutions.ie\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Scripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d","description":"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your","canonical_url":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"Kyj52YLp6GOPA44PVBffo9fjW8rgWHYYRF0ZYjfy6ss","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#article","name":"Scripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d","headline":"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;","author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/#articleImage","width":400,"height":81},"datePublished":"2011-02-02T10:12:23+00:00","dateModified":"2011-02-02T10:19:24+00:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#webpage"},"articleSection":"Tech Stuff, encryption, GPG, OpenPGP, scripting"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","position":1,"name":"Home","item":"https:\/\/www.ridgesolutions.ie","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","name":"Tech Stuff"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","position":2,"name":"Tech Stuff","item":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#listItem","name":"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#listItem","position":3,"name":"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/#listItem","name":"Tech Stuff"}}]},{"@type":"Organization","@id":"https:\/\/www.ridgesolutions.ie\/#organization","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","url":"https:\/\/www.ridgesolutions.ie\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ridgesolutions.ie\/wp-content\/uploads\/2013\/09\/ridge_logo1.jpg","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#organizationLogo","width":400,"height":81},"image":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author","url":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/","name":"Kevin Godden","image":{"@type":"ImageObject","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2833f41e59a25cf2a9741a05ec383bfdd278762a5e0798a90940e7ab0a107a2?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kevin Godden"}},{"@type":"WebPage","@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#webpage","url":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/","name":"Scripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d","description":"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ridgesolutions.ie\/#website"},"breadcrumb":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"creator":{"@id":"https:\/\/www.ridgesolutions.ie\/index.php\/author\/kgodden\/#author"},"datePublished":"2011-02-02T10:12:23+00:00","dateModified":"2011-02-02T10:19:24+00:00"},{"@type":"WebSite","@id":"https:\/\/www.ridgesolutions.ie\/#website","url":"https:\/\/www.ridgesolutions.ie\/","name":"Ridge Solutions, Software Development and Software Engineering, Ireland.","description":"Some thoughts of a busy Computer Engineer","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ridgesolutions.ie\/#organization"}}]},"og:locale":"en_US","og:site_name":"Systems and Embedded Software Engineering, Ireland. | Some thoughts of a busy Computer Engineer","og:type":"article","og:title":"Scripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d","og:description":"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your","og:url":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/","article:published_time":"2011-02-02T09:12:23+00:00","article:modified_time":"2011-02-02T09:19:24+00:00","twitter:card":"summary","twitter:title":"Scripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d","twitter:description":"GPG is great software for manually encrypting data using the OpenPGP standard - good encryption tools are more and more becoming essential to software development. However using GPG from a script sometimes presents problems. Why would you want to GPG from a script? Well you might want to encrypt a backup from within your"},"aioseo_meta_data":{"post_id":"108","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-09-13 19:52:48","updated":"2025-07-15 20:56:25","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/\" title=\"Tech Stuff\">Tech Stuff<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tScripting GPG \u2013 \u201cIt is NOT certain that the key belongs to the person named\u2026\u201d\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ridgesolutions.ie"},{"label":"Tech Stuff","link":"https:\/\/www.ridgesolutions.ie\/index.php\/category\/tech-stuff\/"},{"label":"Scripting GPG &#8211; &#8220;It is NOT certain that the key belongs to the person named&#8230;&#8221;","link":"https:\/\/www.ridgesolutions.ie\/index.php\/2011\/02\/02\/scripting-gpg-it-is-not-certain-that-the-key-belongs-to-the-person-named\/"}],"_links":{"self":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":0,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ridgesolutions.ie\/index.php\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}