Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On IBM i 7.1, is it possible to access the *SYSTEM certificate store from the PHP cURL extension?

We run Zend Server 7 with PHP on a V7R1 IBM i. We use the cURL PHP extension to call SSL-secured web services. We need to specify a CA cert bundle so cURL can verify the web service cert.

Ideally, we would like some way to use the SYSTEM certificate store for this so we only need to manage certificates in one place since we also make SSL-secured web service calls from RPG.

System details:

IBM i: V7R1

PHP: 5.4.29

cURL: 7.21.0 with OpenSSL/0.9.8y

like image 799
Joel Anair Avatar asked Nov 09 '22 16:11

Joel Anair


1 Answers

It is only possible to do so if you know where the system CA cert store is, and it is stored in PEM files in the way OpenSSL wants them. Then you point out that file/dir with the normal curl options for that purpose.

On most non-linux systems, this is not possible.

like image 151
Daniel Stenberg Avatar answered Nov 14 '22 22:11

Daniel Stenberg