You are using the basic form of public key cryptographic. The sender knows your public key, cyphers the message with it and sends you a message that only you can decrypt. It is as standard as it goes and if someone recovers your private key from analysing the traffic then pgp has serious problems. I don't know how difficult it would be for someone intercepting your traffic to get the public key though. This means I would not personally use this procedure to authenticate clients, but someone more knowledgable might cast some light on this aspect.

If you have enough control on the server, you could do something similar (and even better) using ssl with client authentication, by giving clients your server's certificate and only allowing your clients' certificate (or better a different certificate for every client) on your server.

Cheers

Antonio


The stupider the astronaut, the easier it is to win the trip to Vega - A. Tucket

In reply to Re: Am I asking for trouble using Crypt::OpenPgp this way? by abell
in thread Am I asking for trouble using Crypt::OpenPgp this way? by boat73

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.