Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Using an SSL cert to talk to a server

by rastoboy (Monk)
on Jun 08, 2011 at 22:50 UTC ( [id://908802]=perlquestion: print w/replies, xml ) Need Help??

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://908802]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found