Question

I have a Java Servlet running on a Tomcat 7 server that uses Client Authentication. I want to make a HTTP request from a PHP script to this server. I'm not that familiar with PHP but from what I found online it seems that the cURL library can be used for this task. I've read the cURL documentation but I didn't find any way of setting a certificate for client authentication. Am I missing something, is there any way to do this using cURL or is there any other PHP library that can be used for this ?

Was it helpful?

Solution

The CURLOPT_SSLCERT option allows you to specify the path to your certificate.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top