I know that the server is expecting a certificate to be sent back....

You've got it a little backward. If it is a "secure server" (in other words, one that handles SSL,) then the server will have a certificate installed. The certificate will be signed by a "certificate authority" or CA. The CA will either be a known and generally trusted third party such as Verisign or Thawte or it could be an unknown such as the company that owns the server itself.

You could theoretically have an encrypted conversation with a server without requiring a certificate at all. The problem is that you wouldn't know the server was really the server you wanted to communicate with, and that's not very secure afterall, is it? The certificate essentially says, "this is really www.example.com." Since servers don't usually care who is talking to them, there is no reason to try to verify it the other way around. That's why you, as the client, probably don't need a certificate. (There are rare exceptions to this.) That's also why locally signed certificates shouldn't be used for anything but testing (or internal to an organization.)

LWP works just fine with SSL as long as you have configured it to when compiling and have the proper libraries. Read the documentation for more information.

Update: If you are really in a situation where client authentication is required, then you should ask the owner of the server what the requirements are. Depending on the CA(s) that that the server trusts you may have to be issued one or you may have to purchase one.

-sauoq
"My two cents aren't worth a dime.";

In reply to Re: Certificates... by sauoq
in thread Certificates... by saz

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.