This started out as a Perl topic: I thought a good use for btrott's new OpenPGP module would be a Perl script that signs and verifies signatures on web pages

I thought about signing web pages so that the documentation and other information posted on the site is tied with the digital signature on the code. I thought about that after a CB discussion about a new virus, where a file name that's of a real file is in the wrong place. Signing our EXE's and DLL's would cut that out.

So, how does someone downloading my library know that it's signed by me, not just signed by anyone who figures out how to run PGP and type a name? Because the same signature is used in other places, so the consumer "gets to know" that person.

So, I figured it would be a fairly simple task: run the text of the HTML file (after filtering out the sig line itself) through Crypt::OpenPGP in text mode, and stick the result in a META tag or PICS field or something.

Simple, right? So why hasn't it already been done? I did a search for existing standards, and found XML signatures and signing of PICS tags, but not signing of HTML documents or portions therof.

So, is there such a thing already that you've heard of?

Another idea is to generate a standalone sig file, and either use a naming convention (foo.html belongs with foo.html.sig) or a link on your page to it, or both. No "standards" needed, no special tools either. Just run all your files through PGP generating detached sigs, and provide those on your site as well.

Any thoughts, anyone?

—John


In reply to Digital Signatures on Web Pages by John M. Dlugosz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.