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

curl-and-php

curl and PHP with client certificate

From: Hugo Alexandre A. S. Dias <hugo_at_mni.pt>
Date: Thu, 6 Jun 2002 18:52:02 +0100

i'm getting tired of this thing, but i'll have to have this working fast.

i need to comunicate with a server with https and i need to send it some values. I need to use a client certificate.

This command
curl -d A030=M001 -d A001=1266 -d C007=30606020008628 -v --cert \certificados\tpa1266.pem:123456 --cacert \certificados\chain.cer https://cer.pnet.multibanco.pt/pvtn

returns me
* Your connection is using a weak random seed!
* Closing live connection (#0)
curl: (35) error setting cerficate verify locations

I converted the client certificate to PEM format and all the certs in the chain of this and of the server to PEM format too.

What i'm doing wrong?

Thanks.

Hugo Alexandre Dias
Web-Programmer
MNI - Médicos na Internet, Saúde na Internet, S.A.
E-mail: hugo_at_mni.pt
http://www.mni.pt http://www.saudenainternet.pt http://www.listamedica.com http://medicos24.siconline.pt
MNI - Um Mundo de Médicos

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

  • application/x-pkcs7-signature attachment: smime.p7s
Received on 2002-06-07