{"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 class=\"wp-block-paragraph\">Let&#8217;s consider the case where the signed document is a pdf (document.pdf.p7m).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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>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":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_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_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-2Nd","jetpack-related-posts":[{"id":15976,"url":"https:\/\/monodes.com\/predaelli\/2026\/08\/31\/a-good-usage-of-vibe-coding\/","url_meta":{"origin":10739,"position":0},"title":"A good usage of vibe-coding","author":"Paolo Redaelli","date":"2026-08-31","format":false,"excerpt":"Here an application where vibe-coding is used positively: https:\/\/github.com\/tizbac\/firmadigitaleopenng - Opensource Italian Digital Signing for Linux Let me be clear with that, this project is mostly vibe-coded, from original python version i made, if you are not ok with that, feel free to use the crashy ones that barely run\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/monodes.com\/predaelli\/category\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12351,"url":"https:\/\/monodes.com\/predaelli\/2025\/01\/27\/if-openssl-were-a-gui\/","url_meta":{"origin":10739,"position":1},"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":2},"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":3},"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":4},"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":8667,"url":"https:\/\/monodes.com\/predaelli\/2021\/09\/08\/useful-tools\/","url_meta":{"origin":10739,"position":5},"title":"Useful tools","author":"Paolo Redaelli","date":"2021-09-08","format":false,"excerpt":"htmlq, like jq, but for HTML. Uses CSS selectors to extract bits content from HTML files. Mozilla's MDN has a good reference for CSS selector syntax. jq is a lightweight and flexible command-line JSON processor.","rel":"","context":"In &quot;Software Libero&quot;","block_context":{"text":"Software Libero","link":"https:\/\/monodes.com\/predaelli\/category\/software\/software-libero\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_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}]}}