{"id":1065,"date":"2022-12-04T16:55:41","date_gmt":"2022-12-04T16:55:41","guid":{"rendered":"https:\/\/3d-imaging.co.uk\/blog\/?p=1065"},"modified":"2022-12-05T14:24:45","modified_gmt":"2022-12-05T14:24:45","slug":"verifying-sig-files-with-gpgp4win","status":"publish","type":"post","link":"https:\/\/3d-imaging.co.uk\/blog\/verifying-sig-files-with-gpgp4win\/","title":{"rendered":"Verifying .sig files with GPGP4win"},"content":{"rendered":"<p>Follow the method below from <a href=\"https:\/\/wiki.gnupg.org\/Gpg4win\/CheckIntegrity#OpenPGP_signatures\">the GnuPG Gpg4win website<\/a><\/p>\n<blockquote cite=\"https:\/\/wiki.gnupg.org\/Gpg4win\/CheckIntegrity#OpenPGP_signatures\">\n<h2>OpenPGP signatures<\/h2>\n<p>If you upgrade your Gpg4Win version, you already have gnupg installed and you can verify the integrity of the downloaded file, by its OpenPGP signature. To do so, you have to download, next the file, the signature of the file. You&#8217;ll find the download-links on the Gpg4Win package integrity site. The ey, with which the files are signed, is also given on that page. You have to import the public key and now you can validate the signature of the file with the command<\/p>\n<p>gpg &#8211;verify gpg4win*.exe.sig gpg4win*.exe\n<\/p><\/blockquote>\n<p><a id=\"#gpa\">Make sure that the non-default GPA component is installed when installing GPG4Win<\/a><br \/>\n<img alt='' class='alignnone size-full wp-image-1066 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638cceeb1e0b9.png' \/><\/p>\n<p>When running the command:<br \/>\n<code>gpg --verify gpg4win*.exe.sig gpg4win*.exe<\/code><\/p>\n<p>You may get the error:<br \/>\n<code>'gpg' is not recognized as an internal or external command,<br \/>\noperable program or batch file.<\/code><br \/>\n<img alt='' class='alignnone size-full wp-image-1092 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638da5afea878.png' \/><\/p>\n<p>This can be fixed by updating your PATH variable<\/p>\n<p><a id=\"Gpg4win-PATH-Variable\"><\/p>\n<h3>Adding the Folder with the Gpg4win Tools to the PATH Variable<\/h3>\n<p>This is one method to fix this (from <a href=\"https:\/\/stackoverflow.com\/questions\/23724698\/gpg-exe-is-not-recognized-as-an-internal-or-external-command-operable-program\">stackoverflow.com<\/a>):<\/p>\n<blockquote cite=\"https:\/\/stackoverflow.com\/questions\/23724698\/gpg-exe-is-not-recognized-as-an-internal-or-external-command-operable-program\"><p>when you receive this error message, \u201cgpg is not recognized as an internal or external command\u201d then you need to update your PATH variable.<br \/>\nTo do this without reboot:<br \/>\nOpen up a command prompt window<br \/>\nPaste this in:<br \/>\nSET PATH=%PATH%;C:\\Program Files (x86)\\GNU\\GnuPG<br \/>\nHit Enter<\/p><\/blockquote>\n<p>Another way is to:<br \/>\nType Environment into Windows Search then click on &#8220;Edit the system environment variables&#8221;<br \/>\n<img alt='' class='alignnone size-full wp-image-1093 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638da7b72b207.png' \/><\/p>\n<p>Click on &#8220;Environment Variables&#8221;:<br \/>\n<img alt='' class='alignnone size-full wp-image-1095 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638da88e816d3.png' \/><\/p>\n<p>Then Select the PATH variable at the top of the dialogue box.<br \/>\nClick Edit<br \/>\nAdd<br \/>\n<code>;C:\\Program Files (x86)\\GNU\\GnuPG<\/code><br \/>\nto the end of the existing text.<br \/>\nClick OK 3 times.<br \/>\nThen restart your machine and try<br \/>\n<code>gpg --verify gpg4win*.exe.sig gpg4win*.exe<\/code><br \/>\nagain.<br \/>\n<img alt='' class='alignnone size-full wp-image-1100 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638dab44d0f7d.png' \/><\/p>\n<p>Now after a restart trying again in the command window:<br \/>\n<code>gpg --verify gpg4win*.exe.sig gpg4win*.exe<\/code><br \/>\nnow gives<br \/>\n<code>E:\\My-Valnondat\\Foss\\Verifying FOSS with signatures and hashes\\PGP4Win>gpg --verify gpg4win*.exe.sig gpg4win*.exe<br \/>\ngpg: Signature made 14\/10\/2022 17:24:16 GMT Summer Time<br \/>\ngpg:                using EDDSA key 6DAA6E64A76D2840571B4902528897B826403ADA<br \/>\ngpg: Can't check signature: No public key<\/code><\/p>\n<p><img alt='' class='alignnone size-full wp-image-1107 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638de5a263c64.png' \/><\/p>\n<p>Search on keys.openpgp.org for the above found EEDSA key 6DAA6E64A76D2840571B4902528897B826403ADA and save the resulting public key:<br \/>\n<img alt='' class='alignnone size-full wp-image-1109 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638de74852116.png' \/><\/p>\n<p>Start Kleopatra and Import the downloaded public key 6DAA6E64A76D2840571B4902528897B826403ADA.asc<br \/>\n<img alt='' class='alignnone size-full wp-image-1111 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638de9a141534.png' \/><\/p>\n<p>Alternatively Lookup on Server from within Kleopatra and Import:<br \/>\n<img alt='' class='alignnone size-full wp-image-1114 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638deb448c8a7.png' \/><\/p>\n<p>Click yes:<br \/>\n<img alt='' class='alignnone size-full wp-image-1118 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638debf27909c.png' \/><\/p>\n<p>Click yes to create an OpenPGP certificate for yourself.<\/p>\n<p>Add Name and email address<br \/>\n<img alt='' class='alignnone size-full wp-image-1120 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df1cf10e8e.png' \/><\/p>\n<p>OpenPGP Certificate made:<br \/>\n<img alt='' class='alignnone size-full wp-image-1127 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df6574c7ef.png' \/><\/p>\n<p>Change Certification Trust by right clicking the imported certificate:<br \/>\n<img alt='' class='alignnone size-full wp-image-1121 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df2682a404.png' \/><\/p>\n<p>Change Trust Level to:<br \/>\nI believe checks are very accurate<br \/>\n<img alt='' class='alignnone size-full wp-image-1123 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df2cb2f7f1.png' \/><\/p>\n<p><img alt='' class='alignnone size-full wp-image-1125 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df2e9ecab7.png' \/><\/p>\n<p>Now trying again in the command window:<br \/>\nE:\\My-Valnondat\\Foss\\Verifying FOSS with signatures and hashes\\PGP4Win>gpg &#8211;verify gpg4win*.exe.sig gpg4win*.exe<br \/>\ngpg: Signature made 14\/10\/2022 17:24:16 GMT Summer Time<br \/>\ngpg:                using EDDSA key 6DAA6E64A76D2840571B4902528897B826403ADA<br \/>\ngpg: Good signature from &#8220;Werner Koch (dist signing 2020)&#8221; [unknown]<br \/>\ngpg: WARNING: This key is not certified with a trusted signature!<br \/>\ngpg:          There is no indication that the signature belongs to the owner.<br \/>\nPrimary key fingerprint: 6DAA 6E64 A76D 2840 571B  4902 5288 97B8 2640 3ADA<\/p>\n<p><img alt='' class='alignnone size-full wp-image-1129 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df70f4828f.png' \/><\/p>\n<p>If you certify by right clicking:<br \/>\n<img alt='' class='alignnone size-full wp-image-1130 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df76780606.png' \/><\/p>\n<p><img alt='' class='alignnone size-full wp-image-1131 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df77d6775a.png' \/><\/p>\n<p><img alt='' class='alignnone size-full wp-image-1132 ' src='https:\/\/3d-imaging.co.uk\/blog\/wp-content\/uploads\/2022\/12\/img_638df7a1eeffb.png' \/><\/p>\n<p>Then the command window comes out like this:<br \/>\n<code>E:\\My-Valnondat\\Foss\\Verifying FOSS with signatures and hashes\\PGP4Win>gpg --verify gpg4win*.exe.sig gpg4win*.exe<br \/>\ngpg: Signature made 14\/10\/2022 17:24:16 GMT Summer Time<br \/>\ngpg:                using EDDSA key 6DAA6E64A76D2840571B4902528897B826403ADA<br \/>\ngpg: Good signature from \"Werner Koch (dist signing 2020)\" [full]<\/code><\/p>\n<p>Useful video going through this method:<br \/>\n[wpdevart_youtube caption=&#8221;&#8221; align=&#8221;left&#8221;]Nkld7E9AOXI[\/wpdevart_youtube]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow the method below from the GnuPG Gpg4win website OpenPGP signatures If you upgrade your Gpg4Win version, you already have&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"__cvm_playback_settings":[],"__cvm_video_id":"","footnotes":""},"categories":[26],"tags":[],"yst_prominent_words":[],"class_list":{"0":"post-1065","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-verifying-foss-sofware"},"menu_order":0,"_links":{"self":[{"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=1065"}],"version-history":[{"count":0,"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1065\/revisions"}],"wp:attachment":[{"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=1065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=1065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=1065"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/3d-imaging.co.uk\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=1065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}