rastoboy has asked for the wisdom of the Perl Monks concerning the following question:

Greetings Brothers,
Sorry for the vagueness of my question, but I think my biggest problem is I don't know the proper terminology.

I need to use a given SSL certificate (pem format) to talk to my company's API server. I can use LWP::UserAgent to get a nice response from it telling me that I'm not using the cert.

I've been reading through the docs for that module, and I see stuff about specifying a CA file (which I tried) but I don't think that's quite the right thing. I don't think this is something specific to our API--it's just an HTTPD server listening on 443, and I need to somehow tell perl to use this cert when trying to make the SSL connection.

Does that make any sense? Any input would be greatly appreciated!

Replies are listed 'Best First'.
Re: Using an SSL cert to talk to a server
by Anonymous Monk on Jun 09, 2011 at 02:03 UTC
      Thanks for the response but wow, that is really hard. With curl you can just use -E to specify a cert. Is it really this hard in perl?