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

is there a way to send https with certificates using a high level function like Net::SSLeay::get_https ? I'm developing a program that needs to make https requests to an ssl server, using certificate authentication. I REALLY don't want to rewrite the LWP or SSLeay modules. I'm pretty sure it has been done before. can you help me ?

Replies are listed 'Best First'.
Re: Https & Certificates
by Anonymous Monk on Jun 04, 2001 at 18:46 UTC
    You guys are fast ;)
    let me clarify my question. I'm using an apache server with -
    SSLVerifyClient require
    SSLVerifyDepth 2
    this option requires the client to send a certificate on any ssl connection. my only problem is that I can't find any way to set the certificate path to be sent to the server without getting into all the socket/ssl details. I've tried using Net::SSLeay::get_https & LWP but either one gives the gui to set up the certificate path.
Re: Https & Certificates
by swiftone (Curate) on Jun 04, 2001 at 17:48 UTC
    As I understand it, LWP supports https as long as the proper modules are installed. I pounded our local HTTPS server with an LWP-using script to test it.

    What are you trying to do that LWP doesn't support?

Re: Https & Certificates
by nardo (Friar) on Jun 04, 2001 at 23:39 UTC
    You could try using Net::SSLeay::use_certificate_file. It's mentioned in the documentation but not in great detail so I'm not sure if it does what you want, but from the name of it, it sounds like it might.
Re: Https & Certificates
by AidanLee (Chaplain) on Jun 04, 2001 at 17:44 UTC

    I'm not sure I can answer your question, but maybe i can ask you a question that will make it easier for other Monks to give you a hand. What is it that you are doing that makes impractical to just use Net::SSLeay rather than trying to replace it? That's kind of what modules are for.

    I'm quite curious about any answers the other monks may have for you :)