php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16386 cURL with SSL : support for a private key "CURL_SSLKEY" ???
Submitted: 2002-04-02 05:27 UTC Modified: 2002-04-02 11:32 UTC
From: cassar_e at libertysurf dot fr Assigned:
Status: Not a bug Package: cURL related
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
 [2002-04-02 05:27 UTC] cassar_e at libertysurf dot fr
In Perl or C API of cURL you can set the certificate
you are using for HTTPS via CURL_SSLCERT (i don't know if the certificate should be X509, PKCS#7 or PKCS#12),
the private key CURL_SSLKEY (i don't know if the key should be PKCS#5 or PKCS#8 format) and CURL_SSLKEYPASSWD (the password protecting the private key).

But in PHP you can only set CURL_SSLCERT. So how can
you make "Strong" SSL authentication in curl
without specifying the private key corresponding to the public key in the certificate ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-02 09:17 UTC] cassar_e at libertysurf dot fr
Sorry i found the solution alone by testing more : cURL with PHP accepts certificate in CURLOPT_SSLCERT who's the concatenation of a certificate in X509 format (encodage PEM) and a RSA private key in PKCS#5 format (encodage PEM).
 [2002-04-02 09:17 UTC] cassar_e at libertysurf dot fr
Sorry i found the solution alone by testing more : cURL with PHP accepts certificate in CURLOPT_SSLCERT who's the concatenation of a certificate in X509 format (encodage PEM) and a RSA private key in PKCS#5 format (encodage PEM).
 [2002-04-02 09:18 UTC] cassar_e at libertysurf dot fr
Sorry i found the solution alone by testing more : cURL with PHP accepts certificate in CURLOPT_SSLCERT who's the concatenation of a certificate in X509 format (encodage PEM) and a RSA private key in PKCS#5 format (encodage PEM).
 [2002-04-02 11:32 UTC] sander@php.net
Closing on user request.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 00:01:30 2024 UTC