cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Could you please give advice to connect and post data to a SSL server whick ask a vaild client certificate?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 1 Mar 2001 08:57:46 +0100 (MET)

On Thu, 1 Mar 2001, gary wrote:

> I am a curl-php-apache users, how should I do to connect and post raw
> data to a SSL server which ask the client must present a vaild
> certificate ?

First, you can start with trying this out stand-alone without involving PHP
or Apache at all.

> exec("/usr/local/curl/bin/curl -i -S -v -m 120 -d '$data' $url --cert
> client.cert", $return_message_array, $return_number);
>
> But both these methods got error 35:SSL connect error. The SSL
> handshaking failed.
>
> Could you please give me any advice? Thank you very much.

Why do you timeout at 120 seconds? Is your certificate using PEM format? Have
you tried to force the SSL version to version 2 or version 3?

What does the server logs say when you do this?

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-03-01