{"id":10739,"date":"2023-10-10T20:14:05","date_gmt":"2023-10-10T18:14:05","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=10739"},"modified":"2023-10-10T20:14:08","modified_gmt":"2023-10-10T18:14:08","slug":"extracting-the-contents-of-a-digitally-signed-file-p7m","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2023\/10\/10\/extracting-the-contents-of-a-digitally-signed-file-p7m\/","title":{"rendered":"Extracting the contents of a digitally signed file (p7m)"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Let&#8217;s consider the case where the signed document is a pdf (document.pdf.p7m).<\/p>\n\n\n\n<p>To extract the content file we use the <strong>openssl<\/strong> command with the <strong>smime<\/strong> parameter for signature verification (<strong>-verify<\/strong>)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">openssl smime -verify -noverify -in document.pdf.p7m -inform DER -out document.pdf<\/code><\/pre>\n<cite>From <em><a href=\"https:\/\/en.quoll.it\/faq\/extracting-the-contents-of-a-digitally-signed-file-p7m\/\">Extracting the contents of a digitally signed file (p7m) &#8211; Quoll tech<\/a><\/em><\/cite><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2023\/10\/10\/extracting-the-contents-of-a-digitally-signed-file-p7m\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":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,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","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},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-10739","post","type-post","status-publish","format-standard","hentry","category-senza-categoria"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-2Nd","jetpack-related-posts":[{"id":12351,"url":"https:\/\/monodes.com\/predaelli\/2025\/01\/27\/if-openssl-were-a-gui\/","url_meta":{"origin":10739,"position":0},"title":"If OpenSSL were a GUI","author":"Paolo Redaelli","date":"2025-01-27","format":false,"excerpt":"If OpenSSL were a GUI What if OpenSSL were a GUI program? Here's what it might look like. I just wish a Mac OS 9 \"Classic\" theme for GTK4. B00MERANG made a lot of themes, but not this.","rel":"","context":"In &quot;Fun&quot;","block_context":{"text":"Fun","link":"https:\/\/monodes.com\/predaelli\/category\/fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7730,"url":"https:\/\/monodes.com\/predaelli\/2020\/11\/05\/7730\/","url_meta":{"origin":10739,"position":1},"title":"View this gist on GitHub\u2026","author":"Paolo Redaelli","date":"2020-11-05","format":false,"excerpt":"View this gist on GitHub Nel caso vada fuori linea vedi pagina 2 Signing VirtualBox Kernel Modules These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on \u00d8yvind Stegard's blog, save for a few key details.\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"sparkles","src":"https:\/\/i0.wp.com\/github.githubassets.com\/images\/icons\/emoji\/unicode\/2728.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2488,"url":"https:\/\/monodes.com\/predaelli\/2017\/05\/22\/mailx-gmail-e-certificati-gabriele-merli\/","url_meta":{"origin":10739,"position":2},"title":"mailx, gmail e certificati \u2013 Gabriele Merli","author":"Paolo Redaelli","date":"2017-05-22","format":false,"excerpt":"mailx, gmail e certificati \u2013 Gabriele Merli Interessante fonte di guide ed informazioni... Spesso mi capita di dover usare mailx da riga di comando per inviare semplici mail di notifica, generalmente all'interno di uno script. Il pacchetto mailx \u00e8 questo (in centos 7) ]# yum info mailx<br \/> Installed Packages<br\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1254,"url":"https:\/\/monodes.com\/predaelli\/2016\/04\/06\/aptyum-cheatlist\/","url_meta":{"origin":10739,"position":3},"title":"apt\/yum cheatlist","author":"Paolo Redaelli","date":"2016-04-06","format":false,"excerpt":"apt-cache se I'm actually doing the reverse: SwitchingToUbuntu\/FromLinux\/RedHatEnterpriseLinuxAndFedora\u00a0 but it's easy as a quick Ctrl-F or \/ Table of Equivalent Commands Below is a table of equivalent commands for package management on both Ubuntu\/Debian and Red Hat\/Fedora systems. Task Red Hat\/Fedora Ubuntu Adding, Removing and Upgrading Packages Refresh list of\u2026","rel":"","context":"In &quot;Debian&quot;","block_context":{"text":"Debian","link":"https:\/\/monodes.com\/predaelli\/category\/debian\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6834,"url":"https:\/\/monodes.com\/predaelli\/2020\/03\/04\/useful-ffmpeg-commands-for-working-with-audio-and-video-files-digital-inspiration\/","url_meta":{"origin":10739,"position":4},"title":"Useful FFmpeg Commands for Working with Audio and Video Files &#8211; Digital Inspiration","author":"Paolo Redaelli","date":"2020-03-04","format":"link","excerpt":"Useful FFmpeg Commands for Working with Audio and Video Files - Digital Inspiration Useful FFmpeg Commands FFmpeg supports all popular audio and video formats. Or you can running the command .\/ffmpeg -formats to get a list of every format that is supported by your FFmpeg installation. If you are just\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5044,"url":"https:\/\/monodes.com\/predaelli\/2018\/12\/10\/dehydrated-a-bash-client-for-lets-encrypt-antoine-aflalo\/","url_meta":{"origin":10739,"position":5},"title":"Dehydrated: a bash client for Let&#8217;s Encrypt &#8211; Antoine Aflalo","author":"Paolo Redaelli","date":"2018-12-10","format":false,"excerpt":"Tutorial on how to use Dehydrated, a bash client for Let's Encrypt ACME Protocol. Dehydrated helps you take care of your SSL certificates. Source: Dehydrated: a bash client for Let's Encrypt - Antoine Aflalo Dehydrated: a bash client for Let\u2019s Encrypt Dehydrated was firstly known as letsencrypt.sh but because letsencrypt\u2026","rel":"","context":"In &quot;Web&quot;","block_context":{"text":"Web","link":"https:\/\/monodes.com\/predaelli\/category\/web\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2018\/12\/Acme_Dehydrated-1.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2018\/12\/Acme_Dehydrated-1.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2018\/12\/Acme_Dehydrated-1.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2018\/12\/Acme_Dehydrated-1.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/10739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=10739"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/10739\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=10739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=10739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=10739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}